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