|
|
|
@ -46,7 +46,7 @@ public class SzwhApiUtils { |
|
|
|
* 商品申请撤销 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public static JSONObject offGoods(){ |
|
|
|
public static JSONObject offGoods(String reason,String goodsIslicode){ |
|
|
|
String entHost= ProperUtils.getSzwhProp("ENTRUST_URL");//委托系统主机
|
|
|
|
String url=entHost+"/consign/exchange/v1/exchangeRevokeEntrust"; |
|
|
|
String sign=SignUtils.createSign("entrust"); |
|
|
|
@ -54,8 +54,15 @@ public class SzwhApiUtils { |
|
|
|
Map hmap = new HashMap(); |
|
|
|
hmap.put("entrust_token",sign); |
|
|
|
|
|
|
|
//请求参数 转为json
|
|
|
|
JSONObject rparam = new JSONObject(); |
|
|
|
rparam.put("revokeReason",reason); |
|
|
|
rparam.put("isliCode",goodsIslicode); |
|
|
|
rparam.put("status",3); |
|
|
|
String params=reason.toString(); |
|
|
|
|
|
|
|
// 发送post请求
|
|
|
|
JSONObject json = RequestUtils.GetData(url,hmap); |
|
|
|
JSONObject json = RequestUtils.postData(url,params,hmap); |
|
|
|
return json; |
|
|
|
} |
|
|
|
|
|
|
|
|