From bd78f525037c2a98d08666fc3465f717f29e6e66 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期二, 22 十月 2024 10:07:51 +0800 Subject: [PATCH] wendang --- app.js | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 1f62230..38af179 100644 --- a/app.js +++ b/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); + } + + }) }, -}); +}); \ No newline at end of file -- Gitblit v1.9.1