tsurumure 1 сар өмнө
parent
commit
6ef75cb324

+ 5 - 1
src/main/java/com/backendsys/modules/sdk/comfyui/service/impl/ComfyuiSocketServiceImpl.java

@@ -80,6 +80,9 @@ public class ComfyuiSocketServiceImpl implements ComfyuiSocketService {
     @Value("${comfyui.token}")
     private String COMFYUI_TOKEN;
 
+    @Value("${comfyui.output}")
+    private String COMFYUI_OUTPUT;
+
     /**
      * 管理多个连接
      */
@@ -346,7 +349,8 @@ public class ComfyuiSocketServiceImpl implements ComfyuiSocketService {
             for (int i = 0; i < images.size(); i++) {
                 JSONObject image = images.getJSONObject(i);
                 String filename = image.getStr("filename");
-                String filepath = "http://o.daogu.ai/" + port + "/" + filename;
+//                String filepath = "http://o.daogu.ai/" + port + "/" + filename;
+                String filepath = "http://" + COMFYUI_OUTPUT + "/" + port + "/" + filename;
                 images_path.add(filepath);
             }
         }

+ 1 - 0
src/main/resources/application-dev.yml

@@ -212,6 +212,7 @@ klingai:
 
 comfyui:
   host: 127.0.0.1
+  output: o.daoguyujiamcn.com
   ports: 8000, 8001, 8002, 8003, 8004, 8005, 8006, 8007
   token: $2b$12$.MR4qGaFetN1FPQzbfyIrehsyjnPJ12xAZhR/l7KZpLkUPQTCG4gy
   is-save: true

+ 1 - 0
src/main/resources/application-local.yml

@@ -222,6 +222,7 @@ klingai:
 
 comfyui:
   host: 43.128.1.201
+  output: o.daoguyujiamcn.com
   ports: 8000, 8001, 8002, 8003, 8004, 8005, 8006, 8007
   token: $2b$12$.MR4qGaFetN1FPQzbfyIrehsyjnPJ12xAZhR/l7KZpLkUPQTCG4gy
   is-save: false

+ 1 - 0
src/main/resources/application-prod.yml

@@ -213,6 +213,7 @@ klingai:
 
 comfyui:
   host: 127.0.0.1
+  output: o.daoguyujiamcn.com
   ports: 8000, 8001, 8002, 8003, 8004, 8005, 8006, 8007
   token: $2b$12$.MR4qGaFetN1FPQzbfyIrehsyjnPJ12xAZhR/l7KZpLkUPQTCG4gy
   is-save: true