Browse Source

post提交json

master
xyiege 3 years ago
parent
commit
ec4b3f765b
  1. 7
      src/main/java/cn/chjyj/szwh/utils/SzwhApiUtils.java

7
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;
}
/**

Loading…
Cancel
Save