mod: 完善提示信息

This commit is contained in:
orz12
2024-01-25 10:09:20 +08:00
parent 59908e5e90
commit 8dded51127
2 changed files with 18 additions and 2 deletions

View File

@@ -103,7 +103,9 @@ class WebviewController extends GetxController {
await SetCookie.onSet();
final result = await UserHttp.userInfo();
if (result['status'] && result['data'].isLogin) {
SmartDialog.showToast('登录成功');
SmartDialog.showToast('登录成功,当前采用「'
'${GStrorage.setting.get(SettingBoxKey.defaultRcmdType, defaultValue: 'web')}'
'端」推荐');
try {
Box userInfoCache = GStrorage.userInfo;
await userInfoCache.put('userInfoCache', result['data']);