From 81da61b828e29b7745e1382dfbbaeb685dc083ef Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 23 一月 2024 17:17:55 +0800
Subject: [PATCH] 抖音转链修改

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java
index dff923a..cd4dc41 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java
@@ -677,7 +677,6 @@
             if ("ios".equalsIgnoreCase(acceptData.getPlatform())
                     && configService.iosOnLining(Integer.parseInt(acceptData.getVersion()), acceptData.getSystem()))
                 otherInfo.setRewardCoupon(null);
-
             goodsDetail.setOtherInfo(otherInfo);
         }
         extraVO.setFanliValid(fanliValid);
@@ -2299,8 +2298,13 @@
             return;
         }
 
-        DYConvertResult link = CSJCPSApiUtil.goodsConvert(goods.getDetail_url(), DYUtil.createFanLiExtraInfo(uid),
-                "");
+        DYConvertResult link = null;
+        try {
+            link = CSJCPSApiUtil.goodsConvert(goods.getDetail_url(), DYUtil.createFanLiExtraInfo(uid),
+                    "");
+        } catch (Exception e) {
+            out.print(JsonUtil.loadFalseResult(2, "鍟嗗搧杞摼澶辫触"));
+        }
 
         GoodsJumpLinkVO vo = GoodsJumpUtil.getDYJumpInfo(link);
 

--
Gitblit v1.8.0