From 0b523220931d70aa752c3beaca5ed32ca85511c5 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 28 三月 2024 11:36:05 +0800 Subject: [PATCH] Merge refs/remotes/origin/master into refs/heads/master --- assets/js/middleGround/api/ugc.js | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/assets/js/middleGround/api/ugc.js b/assets/js/middleGround/api/ugc.js index 3ccce0d..525e9dd 100644 --- a/assets/js/middleGround/api/ugc.js +++ b/assets/js/middleGround/api/ugc.js @@ -1,14 +1,15 @@ import request from "../../../request/index"; -import { tokenKey } from "../../config"; +import { + tokenKey +} from "../../config"; import toolClass from "../../toolClass"; -let token = wx.getStorageSync(tokenKey) ? wx.getStorageSync(tokenKey) : '' +let token = wx.getStorageSync(tokenKey) ? wx.getStorageSync(tokenKey) : ''; const ugcApi = { // 鑾峰彇鍟嗗搧鐐硅禐Topic getProductLikesTopic(data) { return request({ - url: token - ? "/ugc/api/ApiAppUserGetProductLikesTopic" - : "/ugc/api/ApiGetProductLikesTopic", + url: token ? + "/ugc/api/ApiAppUserGetProductLikesTopic" : "/ugc/api/ApiGetProductLikesTopic", method: "post", data, }); @@ -17,9 +18,8 @@ // 鑾峰彇鍟嗗搧璇勮Topic getProductCommentTopic(data) { return request({ - url: token - ? "/ugc/api/ApiAppUserGetProductCommentTopic" - : "/ugc/api/ApiGetProductCommentTopic", + url: token ? + "/ugc/api/ApiAppUserGetProductCommentTopic" : "/ugc/api/ApiGetProductCommentTopic", method: "post", data, }); @@ -28,9 +28,8 @@ // 鑾峰彇MessageList getTopicMessageList(data) { return request({ - url: token - ? "/ugc/api/ApiAppUserGetTopicMessageList" - : "/ugc/api/ApiGetTopicMessageList", + url: token ? + "/ugc/api/ApiAppUserGetTopicMessageList" : "/ugc/api/ApiGetTopicMessageList", method: "post", data, }); @@ -96,4 +95,4 @@ // }, }; -export default ugcApi; +export default ugcApi; \ No newline at end of file -- Gitblit v1.9.1