app.js
@@ -4,8 +4,14 @@ 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('已刷新') }) }, }); });