Commit c432f32e authored by 刘凡's avatar 刘凡

*)增加异常返回信息

parent 8f1d5037
...@@ -400,7 +400,7 @@ public class DPSubServiceImpl { ...@@ -400,7 +400,7 @@ public class DPSubServiceImpl {
attachmentUploadDatasObj.put("value", value); attachmentUploadDatasObj.put("value", value);
String accept = visualParams.getString("accept"); String accept = visualParams.getString("accept");
String label = visualParams.getString("label"); String label = visualParams.getString("label");
if (!ValidationUtil.isEmpty(displayName) && ("附件".equals(label) || "其他附件".equals(label))){ if (!ValidationUtil.isEmpty(displayName)){
label = label + "(" + displayName + ")"; label = label + "(" + displayName + ")";
} }
attachmentUploadDatasObj.put("label", label); attachmentUploadDatasObj.put("label", label);
...@@ -522,6 +522,11 @@ public class DPSubServiceImpl { ...@@ -522,6 +522,11 @@ public class DPSubServiceImpl {
Object bizResult = convertResult(JSONObject.parseObject(response), resultConvert); Object bizResult = convertResult(JSONObject.parseObject(response), resultConvert);
ResponseModel responseModel = JSONObject.parseObject(response, ResponseModel.class); ResponseModel responseModel = JSONObject.parseObject(response, ResponseModel.class);
if (200 != responseModel.getStatus()){
log.info("调用第三方接口失败, 请求地址:{}", apiObj);
throw new RuntimeException(String.format("调用第三方接口失败!"));
}
JSONObject ruleData = apiObj.getJSONObject("ruleData"); JSONObject ruleData = apiObj.getJSONObject("ruleData");
if (!ValidationUtil.isEmpty(ruleData)) { if (!ValidationUtil.isEmpty(ruleData)) {
String responseSuccess = ruleData.getString("responseSuccess").replace("data", ""); String responseSuccess = ruleData.getString("responseSuccess").replace("data", "");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment