|
|
|
@ -67,14 +67,9 @@ public class MssqApiServiceImpl implements IMssqApiService { |
|
|
|
String invokingServiceRequestMethod="POST"; |
|
|
|
// 服务调用的请求方法
|
|
|
|
// 1.获取本地签名
|
|
|
|
log.info("民生诉求获取mssqUrl:{}",mssqUrl); |
|
|
|
log.info("民生诉求获取appId:{}",appId); |
|
|
|
log.info("民生诉求获取appKey:{}",appKey); |
|
|
|
String tokenSign = gatewaySignEncode(appId, appKey, currTime); |
|
|
|
log.info("民生诉求获取tokenSign:{}",tokenSign); |
|
|
|
// 2.调用获取token接口
|
|
|
|
JSONObject jsonObject = httpRequest(mssqUrl + "/auth/token", "POST", "", appId, currTime, tokenSign); |
|
|
|
log.info("民生诉求获取auth:{}",jsonObject.toJSONString()); |
|
|
|
JSONObject jsonObjectBody = JSONObject.parseObject(jsonObject.getString("body")); |
|
|
|
// log.info("民生诉求获取token接口:{}",jsonObject);
|
|
|
|
if (jsonObjectBody != null) { |
|
|
|
@ -129,7 +124,6 @@ public class MssqApiServiceImpl implements IMssqApiService { |
|
|
|
|
|
|
|
|
|
|
|
String s = JSONObject.toJSONString(mssqAddOrder); |
|
|
|
log.info("民生诉求token:{}",JSONObject.toJSONString(mssqToken)); |
|
|
|
log.info("民生诉求查询工单状态,上传参数:{}",s); |
|
|
|
String serviceJsonData = ServiceInvocation.httpRequestForInterface2Form(mssqUrl + "/api/hcp-api/comprehensive/comprehensiveView", |
|
|
|
mssqAddOrder.getInvokingServiceRequestMethod(), s, appId, mssqToken.getGatewayRtime(), mssqToken.getGatewaySig()); |
|
|
|
@ -179,7 +173,6 @@ public class MssqApiServiceImpl implements IMssqApiService { |
|
|
|
//请求类型
|
|
|
|
mssqAddOrder.setInvokingServiceRequestMethod("POST"); |
|
|
|
String s = JSONObject.toJSONString(mssqAddOrder); |
|
|
|
log.info("民生诉求token:{}",JSONObject.toJSONString(mssqToken)); |
|
|
|
log.info("民生诉求查询工单状态,上传参数:{}",s); |
|
|
|
JSONObject serviceJsonData = null; |
|
|
|
try { |
|
|
|
|