SAP呼叫接口打开需要授权认证才能请求

This commit is contained in:
彭枝刚 2024-12-04 09:14:24 +08:00
parent ae75a2b80d
commit 8674445bb1
2 changed files with 1 additions and 2 deletions

View File

@ -44,7 +44,6 @@ public class InvokeController {
/*
SAP 呼叫地址
*/
@Inner(value = false)
@PostMapping(value = {"/invoke", "/{service}/invoke"})
public JSONObject invoke(@PathVariable(value = "service", required = false) String service,@RequestBody JSONObject jsonBody) {
String requestText = jsonBody.toJSONString();

View File

@ -37,7 +37,7 @@ public class Fsmm003Service implements HandlerService {
String errorMsg = "成功";
String status = "S";
try {
JSONObject result = remotePoService.dealPoDataLogic(messageObj, SecurityConstants.FROM_IN).getData();
JSONObject result = remotePoService.dealPoDataLogic(messageObj).getData();
response.setTransTime(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
if ("S".equals(result.getString("MSGTY"))) {
response.setResult("S");