From 56d4530d4ce181e62b1a038fac173b4d5f025284 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 24 十月 2024 16:05:18 +0800
Subject: [PATCH] 视频播放

---
 app.js |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/app.js b/app.js
index 90e3474..38af179 100644
--- a/app.js
+++ b/app.js
@@ -1,11 +1,21 @@
 import updateManager from './common/updateManager';
-import MG from './assets/js/middleGround/WebMiddleGroundApi'
-import config from "./assets/js/config.js"
+import MG from './assets/js/middleGround/WebMiddleGroundApi';
+import config from './assets/js/config';
 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