From abe52e53bee051e3f801d001c4de58d34a3fefd7 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期三, 23 十月 2024 09:54:09 +0800 Subject: [PATCH] wj --- app.js | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index 09258b6..38af179 100644 --- a/app.js +++ b/app.js @@ -1,9 +1,21 @@ 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); + } + + }) }, -}); +}); \ No newline at end of file -- Gitblit v1.9.1