From 30d8e227e8d823b6c38c3b9c90ac2df03b63befe Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 25 二月 2025 16:41:22 +0800
Subject: [PATCH] 淘宝转链接口更新

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserInfoController.java |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserInfoController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserInfoController.java
index 8c4a0e9..fd30ade 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserInfoController.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserInfoController.java
@@ -1301,6 +1301,10 @@
                 stateInfo = "璇ヨ鍗曠敵璇夊凡閫氳繃锛岃绋嶅悗鏌ョ湅銆�";
             } else if (state == -5) {
                 stateInfo = "璇ヨ鍗曚负鍒嗕韩濂栭噾璁㈠崟";
+            } else if (state == -1001) {
+                stateInfo = "璇ヨ鍗曚负杩濊璁㈠崟";
+            } else if (state == -1002) {
+                stateInfo = "璇ヨ鍗曞凡鍙戣捣缁存潈";
             }
         }
         JSONObject data = new JSONObject();
@@ -1392,7 +1396,7 @@
     }
 
     @RequestMapping("collectionGoods")
-    public void collectionGoods(AcceptData acceptData, long uid, long auctionId, int type, PrintWriter out) {
+    public void collectionGoods(AcceptData acceptData, long uid, String auctionId, int type, PrintWriter out) {
         try {
             CollectionGoodsV2 find = collectionGoodsV2Service.findByUidAndAuctionId(uid, auctionId,
                     Constant.SOURCE_TYPE_TAOBAO);
@@ -1432,7 +1436,7 @@
      * @param out
      */
     @RequestMapping("collectionGoodsJp")
-    public void collectionGoodsJp(String callback, AcceptData acceptData, Long uid, Long auctionId, Integer goodsType,
+    public void collectionGoodsJp(String callback, AcceptData acceptData, Long uid, String auctionId, Integer goodsType,
                                   PrintWriter out) {
 
         if (uid == null || auctionId == null) {
@@ -1490,7 +1494,7 @@
 
             BigDecimal proportion = hongBaoManageService.getFanLiRate(acceptData.getSystem());
 
-            List<Long> listGid = new ArrayList<Long>();
+            List<String> listGid = new ArrayList<>();
             for (CollectionGoodsV2 collectionGoodsV2 : collectionGoodsList) {
                 CommonGoods commonGoods = collectionGoodsV2.getCommonGoods();
                 if (commonGoods == null) {
@@ -1518,9 +1522,9 @@
 
                 if (listTaoKeGoods != null && listTaoKeGoods.size() > 0) {
                     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;
@@ -1567,7 +1571,7 @@
             if (!StringUtil.isNullOrEmpty(ids)) {
                 Arrays.asList(ids.split(",")).parallelStream().forEach(auctionIdStr -> {
                     try {
-                        collectionGoodsV2Service.cancelCollectionByAuctionId(uid, Long.parseLong(auctionIdStr),
+                        collectionGoodsV2Service.cancelCollectionByAuctionId(uid, (auctionIdStr),
                                 goodsType);
                     } catch (Exception e) {
                         e.printStackTrace();
@@ -2247,7 +2251,7 @@
                     vipAction.put("jumpDetail",
                             jumpDetailV2Service.getByTypeCache("web",
                                     acceptData.getPlatform().equalsIgnoreCase("android") ? 1 : 2,
-                                    Integer.parseInt(acceptData.getVersion())));
+                                    Integer.parseInt(acceptData.getVersion()), acceptData.getSystem()));
                     JSONObject params = new JSONObject();
                     params.put("url", userVipConfigService.getValueByKey("vip_manager_link"));
                     vipAction.put("params", params);
@@ -2263,7 +2267,7 @@
                             vipAction.put("jumpDetail",
                                     jumpDetailV2Service.getByTypeCache("web",
                                             acceptData.getPlatform().equalsIgnoreCase("android") ? 1 : 2,
-                                            Integer.parseInt(acceptData.getVersion())));
+                                            Integer.parseInt(acceptData.getVersion()), acceptData.getSystem()));
                             JSONObject params = new JSONObject();
                             params.put("url", link.replace("[ID]", list.get(0).getId()));
                             vipAction.put("params", params);

--
Gitblit v1.8.0