diff --git a/src/main/java/io/github/lunasaw/zlm/hook/controller/ZlmHookController.java b/src/main/java/io/github/lunasaw/zlm/hook/controller/ZlmHookController.java index 6678423..02b8890 100644 --- a/src/main/java/io/github/lunasaw/zlm/hook/controller/ZlmHookController.java +++ b/src/main/java/io/github/lunasaw/zlm/hook/controller/ZlmHookController.java @@ -103,8 +103,7 @@ public HookResult onStreamNotFound(@RequestBody OnStreamNotFoundHookParam param) @PostMapping(value = "/on_server_started", produces = "application/json;charset=UTF-8") public HookResult onServerStarted(@RequestBody ServerNodeConfig param) { log.info("onServerStarted::param = {}", param); - // executor.execute(() -> zlmHookService.onServerStarted(JSON.parseObject(param.toJSONString(), - // ServerNodeConfig.class))); + executor.execute(() -> zlmHookService.onServerStarted(param)); return HookResult.SUCCESS(); } @@ -197,4 +196,4 @@ public HookResult onRecordMp4(@RequestBody OnRecordMp4HookParam param) { return HookResult.SUCCESS(); } -} \ No newline at end of file +}