mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 设置部分项目调整
This commit is contained in:
@@ -428,18 +428,11 @@ class MemberHttp {
|
|||||||
print(confirmRes);
|
print(confirmRes);
|
||||||
SmartDialog.dismiss();
|
SmartDialog.dismiss();
|
||||||
if (confirmRes.data['code'] != 0) {
|
if (confirmRes.data['code'] != 0) {
|
||||||
if (confirmRes.data['code'] == -101 ||
|
|
||||||
confirmRes.data['message'] == "账号未登录") {
|
|
||||||
return {
|
|
||||||
'status': false,
|
|
||||||
'data': [],
|
|
||||||
'msg': "请在设置中退出账号并重新登录再试",
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return {
|
return {
|
||||||
'status': false,
|
'status': false,
|
||||||
'data': [],
|
'data': [],
|
||||||
'msg': "确认登录失败:${confirmRes.data['message']}",
|
'msg':
|
||||||
|
"确认登录失败:${confirmRes.data['message']}\n\n请在设置中退出账号,重启app,重新登录再试",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
SmartDialog.showLoading(msg: "等待500毫秒...");
|
SmartDialog.showLoading(msg: "等待500毫秒...");
|
||||||
@@ -449,12 +442,12 @@ class MemberHttp {
|
|||||||
var res = await qrcodePoll(authCodeRes['data']);
|
var res = await qrcodePoll(authCodeRes['data']);
|
||||||
SmartDialog.dismiss();
|
SmartDialog.dismiss();
|
||||||
if (res['status']) {
|
if (res['status']) {
|
||||||
return {'status': true, 'data': [], 'msg': res['message']};
|
return {'status': true, 'data': [], 'msg': res['msg']};
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
'status': false,
|
'status': false,
|
||||||
'data': [],
|
'data': [],
|
||||||
'msg': "登录结果获取失败:${res.data['message']}",
|
'msg': "登录结果获取失败:${res.data['msg']}",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -490,7 +483,7 @@ class MemberHttp {
|
|||||||
return {
|
return {
|
||||||
'status': true,
|
'status': true,
|
||||||
'data': [],
|
'data': [],
|
||||||
'message': '操作成功,当前获取的access_key为:$accessKey'
|
'msg': '操作成功,当前获取的access_key为:$accessKey'
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -445,7 +445,7 @@ class AboutController extends GetxController {
|
|||||||
displayTime: const Duration(milliseconds: 500),
|
displayTime: const Duration(milliseconds: 500),
|
||||||
).then(
|
).then(
|
||||||
(value) => launchUrl(
|
(value) => launchUrl(
|
||||||
Uri.parse('https://t.me/+lm_oOVmF0RJiODk1'),
|
Uri.parse('https://t.me/+162zlPtZlT9hNWVl'),
|
||||||
mode: LaunchMode.externalApplication,
|
mode: LaunchMode.externalApplication,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ class _StyleSettingState extends State<StyleSetting> {
|
|||||||
leading: Icon(Icons.chrome_reader_mode_outlined),
|
leading: Icon(Icons.chrome_reader_mode_outlined),
|
||||||
setKey: SettingBoxKey.useSideBar,
|
setKey: SettingBoxKey.useSideBar,
|
||||||
defaultVal: false,
|
defaultVal: false,
|
||||||
|
needReboot: true,
|
||||||
),
|
),
|
||||||
const SetSwitchItem(
|
const SetSwitchItem(
|
||||||
title: 'MD3样式底栏',
|
title: 'MD3样式底栏',
|
||||||
|
|||||||
@@ -199,7 +199,8 @@ class _VideoSettingState extends State<VideoSetting> {
|
|||||||
const SetSwitchItem(
|
const SetSwitchItem(
|
||||||
title: '优先使用 OpenSL ES 输出音频',
|
title: '优先使用 OpenSL ES 输出音频',
|
||||||
leading: Icon(Icons.speaker_outlined),
|
leading: Icon(Icons.speaker_outlined),
|
||||||
subTitle: '关闭则优先使用AudioTrack输出音频(此项即mpv的--ao)',
|
subTitle:
|
||||||
|
'关闭则优先使用AudioTrack输出音频(此项即mpv的--ao),若遇系统音效丢失、无声等问题请尝试关闭。',
|
||||||
setKey: SettingBoxKey.useOpenSLES,
|
setKey: SettingBoxKey.useOpenSLES,
|
||||||
defaultVal: true,
|
defaultVal: true,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user