From 3af76031f4d1bb8d808a07dff7b3e74a8b0db168 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期六, 11 五月 2024 09:37:48 +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