From 4b5f1f7ed3460df9465e5071a59b8105cbc9146e Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期五, 29 三月 2024 14:35:30 +0800
Subject: [PATCH] 修改

---
 assets/js/middleGround/api/ugc.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/assets/js/middleGround/api/ugc.js b/assets/js/middleGround/api/ugc.js
index 525e9dd..aad8265 100644
--- a/assets/js/middleGround/api/ugc.js
+++ b/assets/js/middleGround/api/ugc.js
@@ -3,10 +3,10 @@
   tokenKey
 } from "../../config";
 import toolClass from "../../toolClass";
-let token = wx.getStorageSync(tokenKey) ? wx.getStorageSync(tokenKey) : '';
 const ugcApi = {
   // 鑾峰彇鍟嗗搧鐐硅禐Topic
   getProductLikesTopic(data) {
+    let token = wx.getStorageSync(tokenKey) ? wx.getStorageSync(tokenKey) : '';
     return request({
       url: token ?
         "/ugc/api/ApiAppUserGetProductLikesTopic" : "/ugc/api/ApiGetProductLikesTopic",
@@ -17,6 +17,7 @@
 
   // 鑾峰彇鍟嗗搧璇勮Topic
   getProductCommentTopic(data) {
+    let token = wx.getStorageSync(tokenKey) ? wx.getStorageSync(tokenKey) : '';
     return request({
       url: token ?
         "/ugc/api/ApiAppUserGetProductCommentTopic" : "/ugc/api/ApiGetProductCommentTopic",
@@ -27,6 +28,7 @@
 
   // 鑾峰彇MessageList
   getTopicMessageList(data) {
+    let token = wx.getStorageSync(tokenKey) ? wx.getStorageSync(tokenKey) : '';
     return request({
       url: token ?
         "/ugc/api/ApiAppUserGetTopicMessageList" : "/ugc/api/ApiGetTopicMessageList",

--
Gitblit v1.9.1