admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/ConsumerController.java
@@ -93,13 +93,12 @@
    * 
    * @param acceptData
    * @param uid
    * @param id
    * @param type
    * @param goodsType
    * @param out
    */
   @RequestMapping("collectionGoods")
   public void collectionGoods(WXMPAcceptData acceptData, Long uid, Long goodsId, int type, Integer goodsType,
   public void collectionGoods(WXMPAcceptData acceptData, Long uid, String goodsId, int type, Integer goodsType,
         PrintWriter out) {
      try {
         if (goodsType == null || goodsType < 2 || goodsType > 3) {
@@ -210,7 +209,7 @@
      List<GoodsDetailVO> list = new ArrayList<GoodsDetailVO>();
      if (collectionGoodsList != null && collectionGoodsList.size() > 0) {
         List<Long> listGid = new ArrayList<Long>();
         List<String> listGid = new ArrayList<>();
         for (CollectionGoodsV2 collectionGoodsV2 : collectionGoodsList) {
            CommonGoods commonGoods = collectionGoodsV2.getCommonGoods();
            if (commonGoods == null || commonGoods.getGoodsType() != Constant.SOURCE_TYPE_TAOBAO) {
@@ -246,9 +245,9 @@
            if (listTaoKeGoods != null && listTaoKeGoods.size() > 0
                  && commonGoods.getGoodsType() == Constant.SOURCE_TYPE_TAOBAO) {
               int state = 1; // 默认停售
               Long goodsId = commonGoods.getGoodsId();
               String goodsId = commonGoods.getGoodsId();
               for (TaoBaoGoodsBrief taoKeGoods : listTaoKeGoods) {
                  Long auctionId = taoKeGoods.getAuctionId();
                  String auctionId = taoKeGoods.getAuctionId();
                  if (goodsId == auctionId || goodsId.equals(auctionId)) {
                     state = 0; // 在售
                     break;