feat(309/311接口远程接口):

1.309/311接口远程接口,报错信息修改
This commit is contained in:
leiqiaozhen 2025-04-09 11:20:20 +08:00
parent 2ed668e188
commit 7b8f732363
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}

View File

@ -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;
}