|
|
@ -25,14 +25,14 @@ public class SzwhApiUtils { |
|
|
public static JSONObject getApiUser(String userIsli) { |
|
|
public static JSONObject getApiUser(String userIsli) { |
|
|
String userHost= ProperUtils.getSzwhProp("REAL_URL");//用户主机
|
|
|
String userHost= ProperUtils.getSzwhProp("REAL_URL");//用户主机
|
|
|
// 远程获取用户的信息
|
|
|
// 远程获取用户的信息
|
|
|
String userUrl=userHost+"/users/usermgt/v1/user-info/"+userIsli; |
|
|
String userUrl = userHost+ "/slb/usermgt/v1/user-info/"+userIsli; |
|
|
log.info("rquest url:"+userUrl); |
|
|
log.info("rquest url:"+userUrl); |
|
|
// 创建签名
|
|
|
// 创建签名
|
|
|
String sign= SignUtils.createSign("user_real"); |
|
|
String sign= SignUtils.createSign("user_real"); |
|
|
log.info("user token:"+sign); |
|
|
log.info("user token:"+sign); |
|
|
// 请求头
|
|
|
// 请求头
|
|
|
Map<String,Object> hmap =new HashMap(); |
|
|
Map<String,Object> hmap =new HashMap(); |
|
|
hmap.put("token",sign); |
|
|
hmap.put("api_token",sign); |
|
|
hmap.put("Content-Type","application/json"); |
|
|
hmap.put("Content-Type","application/json"); |
|
|
//执行请求
|
|
|
//执行请求
|
|
|
JSONObject json = RequestUtils.GetData(userUrl,hmap,false); |
|
|
JSONObject json = RequestUtils.GetData(userUrl,hmap,false); |
|
|
@ -194,7 +194,7 @@ public class SzwhApiUtils { |
|
|
String tlangHost= ProperUtils.getSzwhProp("TIANLANG_ENTRUST_URL"); |
|
|
String tlangHost= ProperUtils.getSzwhProp("TIANLANG_ENTRUST_URL"); |
|
|
//todo v2:测试环境 v1:正式环境
|
|
|
//todo v2:测试环境 v1:正式环境
|
|
|
//目标为买方
|
|
|
//目标为买方
|
|
|
String url=tlangHost+"/consignation/v2/cancel/waiting"; |
|
|
String url=tlangHost+"/consignation/v1/cancel/waiting"; |
|
|
log.info("获取撤销委托:"+url); |
|
|
log.info("获取撤销委托:"+url); |
|
|
// 使用的token
|
|
|
// 使用的token
|
|
|
String sign=SignUtils.createSign("apply"); |
|
|
String sign=SignUtils.createSign("apply"); |
|
|
|