Sfoglia il codice sorgente

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

chendeben 1 anno fa
parent
commit
6efd01e3df
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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();
   }
 
   /**