闫增涛
2024-07-29 af2e38d1d72633d03afdb6e75f8d30b7ef0d0aee
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",