From 6c68cf469de71773039c2cca8498f35b80b2891b Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 05 九月 2023 18:36:07 +0800
Subject: [PATCH] 唯品会订单修改/猜你喜欢过来的商品不能分享

---
 fanli/src/main/java/com/yeshi/fanli/util/vipshop/VipShopApiUtil.java |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/util/vipshop/VipShopApiUtil.java b/fanli/src/main/java/com/yeshi/fanli/util/vipshop/VipShopApiUtil.java
index b199908..5b22e9c 100644
--- a/fanli/src/main/java/com/yeshi/fanli/util/vipshop/VipShopApiUtil.java
+++ b/fanli/src/main/java/com/yeshi/fanli/util/vipshop/VipShopApiUtil.java
@@ -4,13 +4,7 @@
 import java.io.UnsupportedEncodingException;
 import java.lang.reflect.Type;
 import java.net.URLEncoder;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
+import java.util.*;
 
 import org.apache.commons.httpclient.HttpClient;
 import org.apache.commons.httpclient.HttpException;
@@ -39,6 +33,9 @@
 
     private final static String appKey = "f9e7f22f";
     private final static String appSecret = "9B2291352497FAF42B2DF44BFCF62316";
+
+    //鏄惁閲囩敤璁㈠崟渚犺浆閾�
+    private final static boolean CONVERT_DINGDANXIA = true;
 
     /**
      * 鑾峰彇绛惧悕
@@ -209,6 +206,11 @@
      * @param goodsId
      */
     public static VIPConvertResultDTO convertLink(String goodsId, String tag) {
+
+        if (CONVERT_DINGDANXIA) {
+            return DingDanXiaApiUtil.convertLink(goodsId, tag);
+        }
+
         JSONObject taskParams = new JSONObject();
         JSONArray goodsIdArray = new JSONArray();
         goodsIdArray.add(goodsId);
@@ -228,6 +230,10 @@
 
 
     public static VIPConvertResultDTO convertLinkByUrl(String url, String tag) {
+
+        if (CONVERT_DINGDANXIA) {
+            return DingDanXiaApiUtil.convertLinkByUrl(url, tag);
+        }
         JSONObject taskParams = new JSONObject();
         JSONArray urlArray = new JSONArray();
         urlArray.add(url);
@@ -313,7 +319,9 @@
     }
 
     public static void main(String[] args) {
-        convertLinkByUrl("https://t.vip.com/T7RyKKCJLj9", "437032");
+//        convertLinkByUrl("https://t.vip.com/T7RyKKCJLj9", "437032");
+//        convertLink("560392904","437032");
+        getOrderList(VipShopOrderQueryModel.createOrderSn(Arrays.asList(new String[]{"23090254293903"}),1));
     }
 
 }

--
Gitblit v1.8.0