|
|
|
@ -81,4 +81,21 @@ public class SzwhApiUtils { |
|
|
|
JSONObject json = RequestUtils.GetData(url,hmap); |
|
|
|
return json; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* distribute 同步订单数据 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public static JSONObject synchInfo(){ |
|
|
|
String entHost= ProperUtils.getSzwhProp("REAL_URL");//委托系统主机
|
|
|
|
String url=entHost+"/dist/api/v1/synchInfo"; |
|
|
|
// 使用的token
|
|
|
|
String sign=SignUtils.createSign("distribute"); |
|
|
|
System.out.println(sign); |
|
|
|
Map hmap = new HashMap(); |
|
|
|
hmap.put("dist_token",sign); |
|
|
|
hmap.put("Content-Type","application/json"); |
|
|
|
JSONObject json = RequestUtils.postData(url,"",hmap); |
|
|
|
return json; |
|
|
|
} |
|
|
|
} |
|
|
|
|