From a2e665c3428d0efa9cb0f428f6103bdac553583f Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期二, 15 十月 2024 09:46:55 +0800
Subject: [PATCH] shuzhan

---
 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