feat(309/311接口远程接口):
1.309/311接口远程接口,报错信息修改
This commit is contained in:
parent
2ed668e188
commit
7b8f732363
@ -33,7 +33,7 @@ public class Call311Or309Controller {
|
||||
public R call311Or309Interface(@RequestBody JSONObject contentObject) {
|
||||
InvokeResponse invokeResponse = call311Or309Service.call311Or309Interface(contentObject);
|
||||
if ("E".equals(invokeResponse.getResult())) {
|
||||
return R.failed(invokeResponse.getMessageContent());
|
||||
return R.failed("SAP错误:" + invokeResponse.getMessageContent());
|
||||
} else {
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@ -63,7 +63,7 @@ public class Call311Or309ServiceImpl implements Call311Or309Service {
|
||||
|
||||
// 如果处理失败,抛出异常,让其回滚
|
||||
if ("E".equals(invokeResponse.getResult())) {
|
||||
throw BusinessException.build(invokeResponse.getMessageContent());
|
||||
throw BusinessException.build("SAP报错:" + invokeResponse.getMessageContent());
|
||||
}
|
||||
return invokeResponse;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user