From bab0a8a7a498ce2bf50df4991c5bc548678aa751 Mon Sep 17 00:00:00 2001 From: kane Date: Fri, 10 Nov 2023 09:24:45 +0800 Subject: [PATCH] =?UTF-8?q?ele=20=E4=BF=AE=E6=94=B9=E8=80=81ip=E4=B8=BA?= =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../invoice/utils/elephant/ElephantUtils.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/jianshui-invoice/src/main/java/com/jianshui/invoice/utils/elephant/ElephantUtils.java b/jianshui-invoice/src/main/java/com/jianshui/invoice/utils/elephant/ElephantUtils.java index 103dd0e..0dec72f 100644 --- a/jianshui-invoice/src/main/java/com/jianshui/invoice/utils/elephant/ElephantUtils.java +++ b/jianshui-invoice/src/main/java/com/jianshui/invoice/utils/elephant/ElephantUtils.java @@ -294,6 +294,7 @@ public class ElephantUtils { Map header = new HashMap<>(); header.put("Content-Type", "application/json"); String info = HttpUtils.sendJsonPost(url, jsonObject, header); + log.info("【销项】【大象接口】调用京东云,调用地址:{},入参:{},头信息:{},返回结果:{}",url,jsonObject,header,info); JSONObject obj = JSONObject.parseObject(info); redisCache.setCacheObject(ElephantConstants.TOKEN_REDIS_KEY + "appkey:" + appkey, obj, (int) obj.get("expires_in") - 60, TimeUnit.SECONDS); return (String) obj.get("access_token"); @@ -442,10 +443,17 @@ public class ElephantUtils { String sercretKey = sercretKeyProp.getValue(); boolean isDevMode = CommonUtils.isDevMode(); - String host = ElephantConstants.PROD_HOST_LOCAL; +// String host = ElephantConstants.PROD_HOST_LOCAL; +// if (isDevMode) { +// host = ElephantConstants.DEV_HOST_LOCAL; +// } + + // TODO : 2023/11/09 大象接口迁京东云 + String host = ElephantConstants.PROD_HOST_LOCAL_V6_JingDongYun; if (isDevMode) { - host = ElephantConstants.DEV_HOST_LOCAL; + host = ElephantConstants.DEV_HOST_LOCAL_V6_JingDongYun; } + //kk TODO : 2023/9/5 大象接口迁京东云 //https://js.ele12.com/ // host = "https://js.ele12.com/order-api";