From 4ff508548b71346c97ef563b3dd5ba9291afe342 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期五, 12 七月 2024 17:37:02 +0800 Subject: [PATCH] 教学资源接口去掉childcount参数 --- 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