From ec4b3f765ba5e6fc443fe1f8bc5286b7325ac368 Mon Sep 17 00:00:00 2001 From: xyiege Date: Mon, 10 Oct 2022 14:30:02 +0800 Subject: [PATCH] =?UTF-8?q?post=E6=8F=90=E4=BA=A4json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/chjyj/szwh/utils/SzwhApiUtils.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/cn/chjyj/szwh/utils/SzwhApiUtils.java b/src/main/java/cn/chjyj/szwh/utils/SzwhApiUtils.java index c5389e5..72652b8 100644 --- a/src/main/java/cn/chjyj/szwh/utils/SzwhApiUtils.java +++ b/src/main/java/cn/chjyj/szwh/utils/SzwhApiUtils.java @@ -138,13 +138,16 @@ public class SzwhApiUtils { */ public static JSONObject apiGoodsDetail(String identifiers){ String entHost= ProperUtils.getSzwhProp("ENTRUST_URL");//委托系统主机 - String url=entHost+"/consign/exchange/v1/selectEntrustDetails/"; + String url=entHost+"/consign/exchange/v1/selectEntrustDetails"; // 使用的token String sign=SignUtils.createSign("entrust"); Map hmap = new HashMap(); hmap.put("entrust_token",sign); // post 方式提交给对方服务器 - JSONObject json = RequestUtils.postData(url,identifiers,hmap); + JSONObject isjsonObj=new JSONObject(); + isjsonObj.put("isliCode",identifiers); + JSONObject json = RequestUtils.postData(url,isjsonObj.toString(),hmap); + log.info(identifiers+"详情:"+json); return json; } /**