litian
2024-03-29 4b5f1f7ed3460df9465e5071a59b8105cbc9146e
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",