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/v2/RecommendControllerV2.java |   27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/RecommendControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/RecommendControllerV2.java
index cb59a64..7cb00a5 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/RecommendControllerV2.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/RecommendControllerV2.java
@@ -359,9 +359,9 @@
 
         JumpDetailV2 jumpDetail = null;
         if (VersionUtil.greaterThan_2_0_2(acceptData.getPlatform(), acceptData.getVersion())) {
-            jumpDetail = jumpDetailV2Service.getByTypeCache("spike_goods_list");
+            jumpDetail = jumpDetailV2Service.getByTypeCache("spike_goods_list",acceptData.getSystem());
         } else {
-            jumpDetail = jumpDetailV2Service.getByTypeCache("web");
+            jumpDetail = jumpDetailV2Service.getByTypeCache("web",acceptData.getSystem());
         }
 
         if (array == null) {
@@ -485,7 +485,7 @@
      * @param out
      */
     @RequestMapping("getSpikeGoodsList")
-    public void getSpikeGoodsList(AcceptData acceptData, Integer page, Long goodsId, String qtime, PrintWriter out) {
+    public void getSpikeGoodsList(AcceptData acceptData, Integer page, String goodsId, String qtime, PrintWriter out) {
         List<DaTaoKeDetailV2> detailList0 = daTaoKeGoodsDetailV2Service.getDingDongQiangData(qtime);
         if (detailList0 == null)
             detailList0 = new ArrayList<>();
@@ -495,7 +495,7 @@
         JSONArray array = new JSONArray();
         if (page == 1 && goodsId != null && detailList != null) {
             for (int i = 0; i < detailList.size(); i++) {
-                if (detailList.get(i).getGoodsId().longValue() == goodsId) {
+                if ( TaoBaoUtil.isEqual( detailList.get(i).getGoodsId(), goodsId)) {
                     DaTaoKeDetailV2 goods = detailList.get(i);
                     detailList.remove(i);
                     detailList.add(0, goods);
@@ -538,7 +538,7 @@
         params.put("balanceMore", true);
         root.put("params", params);
         root.put("jumpDetail", jumpDetailV2Service.getByTypeCache("integralExchange",
-                Constant.getPlatformCode(acceptData.getPlatform()), Integer.parseInt(acceptData.getVersion())));
+                Constant.getPlatformCode(acceptData.getPlatform()), Integer.parseInt(acceptData.getVersion()),acceptData.getSystem()));
 
         root.put("name", "閲戝竵鍏戞崲");
         root.put("desc", "姣忔棩绛惧埌锛屾儕鍠滀笉鍋�");
@@ -576,10 +576,10 @@
         root.put("picture", "http://img.flqapp.com/resource/home_search_found.png");
         root.put("params", params);
         root.put("jumpDetail", jumpDetailV2Service.getByTypeCache("web",
-                Constant.getPlatformCode(acceptData.getPlatform()), Integer.parseInt(acceptData.getVersion())));
+                Constant.getPlatformCode(acceptData.getPlatform()), Integer.parseInt(acceptData.getVersion()),acceptData.getSystem()));
 
         root.put("jumpResult", jumpDetailV2Service.getByTypeCache("search_goods_result",
-                Constant.getPlatformCode(acceptData.getPlatform()), Integer.parseInt(acceptData.getVersion())));
+                Constant.getPlatformCode(acceptData.getPlatform()), Integer.parseInt(acceptData.getVersion()),acceptData.getSystem()));
         root.put("keyList", array);
         return root;
     }
@@ -655,7 +655,7 @@
                     acceptData.getVersion(), acceptData.getSystem());
 
 
-            List<GoodsDetailVO> voList = goodsLijinMnager.loadTBMoneyInfo(acceptData.getSystem(), uid, goodsList, paramsDTO);
+            List<GoodsDetailVO> voList = goodsLijinMnager.loadTBMoneyInfo(acceptData.getSystem(), uid, goodsList, paramsDTO,false);
 
             for (GoodsDetailVO vo : voList) {
                 if (page < 3)
@@ -695,10 +695,11 @@
 
             JSONArray array = new JSONArray();
             for (GoodsDetailVO vo : voList) {
-                if (acceptData.getSystem() == SystemEnum.yhqjx) {
-                    if (!StringUtil.isNullOrEmpty(vo.getMoneyInfo().getHongBaoMoney())) {
+                if (acceptData.getSystem() == SystemEnum.yhqjx||acceptData.getSystem() == SystemEnum.hsb) {
+                    //鏆傛椂涓嶇瓫閫夌孩鍖�
+//                    if (!StringUtil.isNullOrEmpty(vo.getMoneyInfo().getHongBaoMoney())) {
                         array.add(gson.toJson(vo));
-                    }
+//                    }
                 } else {
                     array.add(gson.toJson(vo));
                 }
@@ -745,7 +746,7 @@
                                 deviceGoodsList.add(goods);
                             }
                         }
-                        List<GoodsDetailVO> voList = goodsLijinMnager.loadTBMoneyInfo(acceptData.getSystem(), uid, deviceGoodsList, paramsDTO);
+                        List<GoodsDetailVO> voList = goodsLijinMnager.loadTBMoneyInfo(acceptData.getSystem(), uid, deviceGoodsList, paramsDTO,false);
                         for (GoodsDetailVO vo : voList) {
                             vo.setRecommend(true);
                         }
@@ -786,7 +787,7 @@
 
         JSONArray array = new JSONArray();
         for (GoodsDetailVO vo : finalVOList) {
-            if (acceptData.getSystem() == SystemEnum.yhqjx) {
+            if (acceptData.getSystem() == SystemEnum.yhqjx||acceptData.getSystem() == SystemEnum.hsb) {
                 if (!StringUtil.isNullOrEmpty(vo.getMoneyInfo().getHongBaoMoney())) {
                     array.add(gson.toJson(vo));
                 }

--
Gitblit v1.8.0