fix: defaultRcmdType

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-24 20:35:56 +08:00
parent 5eed75e353
commit 00681e95b5
3 changed files with 5 additions and 5 deletions

View File

@@ -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(

View File

@@ -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() {

View File

@@ -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 {