litian
2024-09-30 e5f45ec9c2eabaa3e4241caad2d49c3629eaf0c8
app.js
@@ -4,8 +4,18 @@
App({
  MG: MG,
  config: config,
  onLaunch: function () { },
  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);
      }
    })
  },
});
});