zwhui 2 ani în urmă
părinte
comite
f84d8161bc

+ 9 - 0
midjourney/src/main/java/com/yhlxj/web/mirror/MidjourneyController.java

@@ -446,6 +446,15 @@ public class MidjourneyController {
         midjourneyService.notifyHook(json);
     }
 
+    @PostMapping("/notifyHook1")
+    public void notifyHook1(HttpServletRequest request) throws Exception {
+        InputStream inputStream = request.getInputStream();
+        byte[] bytes = IoKit.toBytes(inputStream);
+        String json = new String(bytes, StandardCharsets.UTF_8);
+        inputStream.close();
+        log.info("接口回调notifyHook1 : {}",json);
+    }
+
 
 
     /**