Skip to content

Commit

Permalink
mod: 代码优化
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Feb 24, 2024
1 parent 098b4ad commit 23a4bf1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/pages/setting/recommend_setting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class _RecommendSettingState extends State<RecommendSetting> {
dense: true,
subtitle: Text(
'¹ 若默认web端推荐不太符合预期,可尝试切换至app端。\n'
'¹ 选择“模拟未登录(notLogin)”,将以空的key请求推荐接口,但播放页仍会携带用户信息,保证账号能正常记录进度、点赞投币等。\n\n'
'¹ 选择“游客模式(notLogin)”,将以空的key请求app推荐接口,但播放页仍会携带用户信息,保证账号能正常记录进度、点赞投币等。\n\n'
'² 由于接口未提供关注信息,无法豁免相关视频中的已关注Up。\n\n'
'* 其它(如热门视频、手动搜索、链接跳转等)均不受过滤器影响。\n'
'* 设定较严苛的条件可导致推荐项数锐减或多次请求,请酌情选择。\n'
Expand Down
1 change: 0 additions & 1 deletion lib/pages/video/detail/reply/reply_emote/view.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:async';
import 'dart:convert';
import 'package:PiliPalaX/models/user/my_emote.dart';
import 'package:flutter/material.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class SettingBoxKey {
hideTabBar = 'hideTabBar', // 收起底栏
tabbarSort = 'tabbarSort', // 首页tabbar
dynamicBadgeMode = 'dynamicBadgeMode',
hiddenSettingUnlocked = 'hiddenSettingUnlocked';
hiddenSettingUnlocked = 'hiddenSettingUnlocked',
enableGradientBg = 'enableGradientBg';
}

Expand Down
2 changes: 1 addition & 1 deletion lib/utils/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class Utils {
} catch (_) {} finally {
closestNumber ??= numbers.last;
}
return closestNumber!;
return closestNumber;
}

// 版本对比
Expand Down

0 comments on commit 23a4bf1

Please sign in to comment.