litian
2024-09-30 e5f45ec9c2eabaa3e4241caad2d49c3629eaf0c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import updateManager from './common/updateManager';
import MG from './assets/js/middleGround/WebMiddleGroundApi';
import config from './assets/js/config';
App({
  MG: MG,
  config: config,
  onLaunch: function () {},
  onShow: function () {
    updateManager();
    MG.identity.refreshToken({
      appRefCode: config.appRefCode,
      token: wx.getStorageSync(config.tokenKey)
    }).then(res => {
      console.log(res, '已刷新')
      if (res.token) {
        wx.setStorageSync(config.tokenKey, res.token);
      }
 
    })
  },
});