|
@@ -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);
|
|
|
}
|
|
|
}
|