mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: def rcmd type
This commit is contained in:
@@ -150,7 +150,7 @@ class LoginPageController extends GetxController
|
|||||||
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')}'
|
||||||
'端」推荐');
|
'端」推荐');
|
||||||
Box userInfoCache = GStorage.userInfo;
|
Box userInfoCache = GStorage.userInfo;
|
||||||
await userInfoCache.put('userInfoCache', result['data']);
|
await userInfoCache.put('userInfoCache', result['data']);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class RcmdController extends PopupController {
|
|||||||
enableSaveLastData = GStorage.setting
|
enableSaveLastData = GStorage.setting
|
||||||
.get(SettingBoxKey.enableSaveLastData, defaultValue: false);
|
.get(SettingBoxKey.enableSaveLastData, defaultValue: false);
|
||||||
defaultRcmdType = GStorage.setting
|
defaultRcmdType = GStorage.setting
|
||||||
.get(SettingBoxKey.defaultRcmdType, defaultValue: 'web');
|
.get(SettingBoxKey.defaultRcmdType, defaultValue: 'app');
|
||||||
|
|
||||||
currentPage = 0;
|
currentPage = 0;
|
||||||
queryData();
|
queryData();
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class _RecommendSettingState extends State<RecommendSetting> {
|
|||||||
super.initState();
|
super.initState();
|
||||||
// 首页默认推荐类型
|
// 首页默认推荐类型
|
||||||
defaultRcmdType =
|
defaultRcmdType =
|
||||||
setting.get(SettingBoxKey.defaultRcmdType, defaultValue: 'web');
|
setting.get(SettingBoxKey.defaultRcmdType, defaultValue: 'app');
|
||||||
userInfo = userInfoCache.get('userInfoCache');
|
userInfo = userInfoCache.get('userInfoCache');
|
||||||
userLogin = userInfo != null;
|
userLogin = userInfo != null;
|
||||||
accessKeyInfo = localCache.get(LocalCacheKey.accessKey, defaultValue: null);
|
accessKeyInfo = localCache.get(LocalCacheKey.accessKey, defaultValue: null);
|
||||||
|
|||||||
Reference in New Issue
Block a user