|
|
@@ -57,12 +57,19 @@ public class PostUtil {
|
|
|
request.body(encryptStr);
|
|
|
// 发送请求并获取响应
|
|
|
try {
|
|
|
+ log.debug("监管平台请求数据:" + JSONUtils.toString(jsonStr));
|
|
|
HttpResponse response = request.execute();
|
|
|
log.debug("监管平台返回结果:" + JSONUtils.toString(response));
|
|
|
String body = response.body();
|
|
|
if (body != null) {
|
|
|
hisResponse = (HisResponseTO) JSONUtils.parse(body, HisResponseTO.class);
|
|
|
- hisResponse.setMsg(hisResponse.getBody().getMsg());
|
|
|
+ HisResponseTO.HisBodyDataTO hisBodyDataTO = hisResponse.getBody();
|
|
|
+ if(hisBodyDataTO.getMsgCode()!=200){
|
|
|
+ hisResponse.setCode(hisBodyDataTO.getMsgCode());
|
|
|
+ hisResponse.setMsg(hisBodyDataTO.getMsg());
|
|
|
+ }else{
|
|
|
+ hisResponse.setMsg(hisResponse.getBody().getMsg());
|
|
|
+ }
|
|
|
} else {
|
|
|
hisResponse.setMsgCode("-1");
|
|
|
hisResponse.setMsg("监管平台返回异常");
|