From 8dc4e50769a7ebc5f0a3d766f61aa08b8f23b772 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期五, 06 九月 2024 11:23:21 +0800
Subject: [PATCH] login

---
 packageDomain/pages/resourceDetails/myVideo/index.js |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js
index 24c52d0..7b64637 100644
--- a/packageDomain/pages/resourceDetails/myVideo/index.js
+++ b/packageDomain/pages/resourceDetails/myVideo/index.js
@@ -88,6 +88,12 @@
         parentName: options.parentName,
       })
     }
+    const token = wx.getStorageSync(app.config.tokenKey)
+    if (!token) {
+      loginInfo(app, (data) => {
+        if (data) {} else {}
+      })
+    }
     this.resourceDetailsData()
 
   },
@@ -307,13 +313,19 @@
   aliVod(md5, currentVideo) {
     let query = {
       md5: md5,
-      appRefCode: config.appRefCode
+      appRefCode: app.config.appRefCode
     }
-    MG.file.getAliVod(query).then((res) => {
+    app.MG.file.getAliVod(query).then((res) => {
       if (res) {
-        this.setData({
-          showDataVod: res,
-        })
+        if (res && res.data == '') {
+          this.setData({
+            showDataVod: currentVideo,
+          })
+        } else {
+          this.setData({
+            showDataVod: res,
+          })
+        }
       } else if (currentVideo) {
         this.setData({
           showDataVod: currentVideo,

--
Gitblit v1.9.1