Explorar o código

在NewIndex就刷新用户信息,防止会员状态一直不过期

chendeben hai 1 ano
pai
achega
6efd01e3df
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      entry/src/main/ets/pages/NewIndex.ets

+ 3 - 0
entry/src/main/ets/pages/NewIndex.ets

@@ -29,6 +29,8 @@ import { systemShare } from '@kit.ShareKit';
 import { uniformTypeDescriptor } from '@kit.ArkData';
 import { hilog } from '@kit.PerformanceAnalysisKit';
 import { DialogHelper } from '@pura/harmony-dialog';
+import UserUtil from '../common/util/UserUtil';
+import json from '@ohos.util.json';
 
 
 const TAG = 'NewIndex'; // 日志标签
@@ -208,6 +210,7 @@ struct NewIndex{
       }, 500);
     }
     // ====== 本地会员同步提醒逻辑 END ======
+    await UserUtil.fetchUserInfo();
   }
 
   /**