mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: defaultRcmdType
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -173,9 +173,7 @@ class _AboutPageState extends State<AboutPage> {
|
||||
onTap: () {
|
||||
Get.toNamed('/logs');
|
||||
},
|
||||
onLongPress: () {
|
||||
clearLogs();
|
||||
},
|
||||
onLongPress: clearLogs,
|
||||
leading: const Icon(Icons.bug_report_outlined),
|
||||
title: const Text('错误日志'),
|
||||
trailing: Icon(Icons.arrow_forward, size: 16, color: outline),
|
||||
@@ -201,11 +199,13 @@ class _AboutPageState extends State<AboutPage> {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => SimpleDialog(
|
||||
title: const Text('导入/导出登录信息'),
|
||||
clipBehavior: Clip.hardEdge,
|
||||
children: [
|
||||
ListTile(
|
||||
title: const Text('导出'),
|
||||
onTap: () async {
|
||||
Get.back();
|
||||
dynamic accessKey = GStorage.localCache
|
||||
.get(LocalCacheKey.accessKey, defaultValue: {});
|
||||
dynamic cookies = (await CookieManager(PersistCookieJar(
|
||||
|
||||
@@ -5,7 +5,7 @@ import 'package:PiliPalaX/utils/storage.dart';
|
||||
|
||||
class RcmdController extends PopupController {
|
||||
late bool enableSaveLastData;
|
||||
late String defaultRcmdType = 'web';
|
||||
late String defaultRcmdType = 'app';
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
|
||||
@@ -75,7 +75,7 @@ class Utils {
|
||||
final result = await UserHttp.userInfo();
|
||||
if (result['status'] && result['data'].isLogin) {
|
||||
SmartDialog.showToast('登录成功,当前采用「'
|
||||
'${GStorage.setting.get(SettingBoxKey.defaultRcmdType, defaultValue: 'web')}'
|
||||
'${GStorage.setting.get(SettingBoxKey.defaultRcmdType, defaultValue: 'app')}'
|
||||
'端」推荐');
|
||||
await GStorage.userInfo.put('userInfoCache', result['data']);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user