mod: 设置部分项目调整

This commit is contained in:
orz12
2024-06-17 01:18:34 +08:00
parent 552ed0122d
commit 052f81cf10
4 changed files with 9 additions and 14 deletions

View File

@@ -428,18 +428,11 @@ class MemberHttp {
print(confirmRes);
SmartDialog.dismiss();
if (confirmRes.data['code'] != 0) {
if (confirmRes.data['code'] == -101 ||
confirmRes.data['message'] == "账号未登录") {
return {
'status': false,
'data': [],
'msg': "请在设置中退出账号并重新登录再试",
};
}
return {
'status': false,
'data': [],
'msg': "确认登录失败:${confirmRes.data['message']}",
'msg':
"确认登录失败:${confirmRes.data['message']}\n\n请在设置中退出账号重启app重新登录再试",
};
}
SmartDialog.showLoading(msg: "等待500毫秒...");
@@ -449,12 +442,12 @@ class MemberHttp {
var res = await qrcodePoll(authCodeRes['data']);
SmartDialog.dismiss();
if (res['status']) {
return {'status': true, 'data': [], 'msg': res['message']};
return {'status': true, 'data': [], 'msg': res['msg']};
} else {
return {
'status': false,
'data': [],
'msg': "登录结果获取失败:${res.data['message']}",
'msg': "登录结果获取失败:${res.data['msg']}",
};
}
} else {
@@ -490,7 +483,7 @@ class MemberHttp {
return {
'status': true,
'data': [],
'message': '操作成功当前获取的access_key为$accessKey'
'msg': '操作成功当前获取的access_key为$accessKey'
};
} else {
return {

View File

@@ -445,7 +445,7 @@ class AboutController extends GetxController {
displayTime: const Duration(milliseconds: 500),
).then(
(value) => launchUrl(
Uri.parse('https://t.me/+lm_oOVmF0RJiODk1'),
Uri.parse('https://t.me/+162zlPtZlT9hNWVl'),
mode: LaunchMode.externalApplication,
),
);

View File

@@ -88,6 +88,7 @@ class _StyleSettingState extends State<StyleSetting> {
leading: Icon(Icons.chrome_reader_mode_outlined),
setKey: SettingBoxKey.useSideBar,
defaultVal: false,
needReboot: true,
),
const SetSwitchItem(
title: 'MD3样式底栏',

View File

@@ -199,7 +199,8 @@ class _VideoSettingState extends State<VideoSetting> {
const SetSwitchItem(
title: '优先使用 OpenSL ES 输出音频',
leading: Icon(Icons.speaker_outlined),
subTitle: '关闭则优先使用AudioTrack输出音频此项即mpv的--ao',
subTitle:
'关闭则优先使用AudioTrack输出音频此项即mpv的--ao若遇系统音效丢失、无声等问题请尝试关闭。',
setKey: SettingBoxKey.useOpenSLES,
defaultVal: true,
),