|
@@ -100,8 +100,11 @@ public class WithdrawSdk {
|
|
|
jsonObject = JSONObject.parseObject(s);
|
|
|
if (StringUtils.equals(jsonObject.getString("return_code"), "T")) {
|
|
|
return true;
|
|
|
+ }else if(!StringUtils.isEmpty(jsonObject.getString("content"))){
|
|
|
+ throw new ThirdpartyException("合同签署失败:{}", jsonObject.getString("content"));
|
|
|
+ }else{
|
|
|
+ throw new ThirdpartyException("合同签署失败:{}", jsonObject.getString("return_message"));
|
|
|
}
|
|
|
- throw new ThirdpartyException("合同签署失败:{}", jsonObject.getString("return_message"));
|
|
|
} catch (IOException e) {
|
|
|
logger.error("请求[合同签署]接口报错", e);
|
|
|
throw new ThirdpartyException("请求[合同签署]接口报错:{}", e.getMessage());
|
|
@@ -204,7 +207,11 @@ public class WithdrawSdk {
|
|
|
if (returnCode.equals("T")) {
|
|
|
return HttpResponseResult.succeed(true);
|
|
|
} else {
|
|
|
- return HttpResponseResult.failed(String.valueOf(mapTypes.get("return_message")));
|
|
|
+ if(null != mapTypes.get("content")){
|
|
|
+ return HttpResponseResult.failed(String.valueOf(mapTypes.get("content")));
|
|
|
+ }else{
|
|
|
+ return HttpResponseResult.failed(String.valueOf(mapTypes.get("return_message")));
|
|
|
+ }
|
|
|
}
|
|
|
} catch (IOException e) {
|
|
|
logger.info("发送失败:{}", e);
|