|
@@ -1878,20 +1878,17 @@ public class SupplyChainController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @RestController
|
|
|
- @RequestMapping("/event")
|
|
|
- public class EventController {
|
|
|
- @RequestMapping(value = "/accept", method = RequestMethod.POST)
|
|
|
- public Map<String, Object> acceptEvent(@RequestBody String eventsEncoded) {
|
|
|
- System.err.println(eventsEncoded);
|
|
|
- // String events = PlatformEventSecurityUtil.decode(eventsEncoded, null);
|
|
|
- //events为明文,这里加入自己代码逻辑
|
|
|
-
|
|
|
- //返回成功
|
|
|
- Map<String, Object> result = new HashMap<>();
|
|
|
- result.put("result", 1);
|
|
|
- return result;
|
|
|
- }
|
|
|
+ @PostMapping(value = "/accept")
|
|
|
+ public Map<String, Object> acceptEvent(@RequestBody String eventsEncoded) {
|
|
|
+ System.err.println(eventsEncoded);
|
|
|
+ // String events = PlatformEventSecurityUtil.decode(eventsEncoded, null);
|
|
|
+ //events为明文,这里加入自己代码逻辑
|
|
|
+
|
|
|
+ //返回成功
|
|
|
+ Map<String, Object> result = new HashMap<>();
|
|
|
+ result.put("result", 1);
|
|
|
+ return result;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|