admin
2021-09-30 42411e4a26461229c6bca6e89ca55e98a80f5a4e
fanli/src/main/java/com/yeshi/fanli/util/jd/JDApiUtil.java
@@ -13,7 +13,6 @@
import java.util.List;
import java.util.Map;
import com.sun.istack.NotNull;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.methods.PostMethod;
@@ -46,9 +45,9 @@
    public static String SECRET_KEY = "e22367fc866746d98b50d47b4c521781";
    private static String SERVER_URL = "https://router.jd.com/api";
    public static long POSITION_FANLI = 1869704794L;
    public static long POSITION_SHARE = 1869542990L;
    public static long POSITION_COUPON = 1869704796L;
//    public static long POSITION_FANLI = 1869704794L;
//    public static long POSITION_SHARE = 1869542990L;
//    public static long POSITION_COUPON = 1869704796L;
    // 订单查询类型
    public static int ORDER_TYPE_CREATETIME = 1;// 下单时间
@@ -146,7 +145,7 @@
        return resultJson.optJSONObject("data").optString("clickURL");
    }
    public static String convertLinkWithSubUnionId(@NotNull String materialId, String couponUrl, String giftCouponKey, @NotNull String positionId,
    public static String convertLinkWithSubUnionId(String materialId, String couponUrl, String giftCouponKey,  String positionId,
                                                   String subUnionId) {
        String log = "京东转链出错:";
        try {
@@ -493,6 +492,7 @@
        JSONObject json = new JSONObject();
        json.put("skuIds", StringUtil.concat(skuIdList, ","));
        String result = baseRequest2("jd.union.open.goods.promotiongoodsinfo.query", null, json);
        System.out.println(result);
        JSONObject resultJson = JSONObject.fromObject(result);
        resultJson = resultJson.optJSONObject("jd_union_open_goods_promotiongoodsinfo_query_response");
        if (resultJson.optInt("code") == 0) {