| | |
| | | import updateManager from './common/updateManager'; |
| | | import MG from './assets/js/middleGround/WebMiddleGroundApi' |
| | | import MG from './assets/js/middleGround/WebMiddleGroundApi'; |
| | | import config from './assets/js/config'; |
| | | App({ |
| | | MG:MG, |
| | | onLaunch: function () { }, |
| | | 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); |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | }); |
| | | }); |