|
@@ -26,6 +26,7 @@ import com.backendsys.utils.response.PageInfoResult;
|
|
import com.backendsys.utils.v2.PageUtils;
|
|
import com.backendsys.utils.v2.PageUtils;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import reactor.core.publisher.Mono;
|
|
import reactor.core.publisher.Mono;
|
|
|
|
|
|
@@ -38,6 +39,9 @@ import java.util.stream.Collectors;
|
|
@Service
|
|
@Service
|
|
public class CrtGenerateServiceImpl implements CrtGenerateService {
|
|
public class CrtGenerateServiceImpl implements CrtGenerateService {
|
|
|
|
|
|
|
|
+ @Value("${comfyui.is-save}")
|
|
|
|
+ private Boolean IS_SAVE;
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
private ComfyuiService comfyUIService;
|
|
private ComfyuiService comfyUIService;
|
|
@Autowired
|
|
@Autowired
|
|
@@ -145,7 +149,7 @@ public class CrtGenerateServiceImpl implements CrtGenerateService {
|
|
Map<String, Object> params = new LinkedHashMap<>();
|
|
Map<String, Object> params = new LinkedHashMap<>();
|
|
params.put("drama_project_storyboard_id", drama_project_storyboard_id);
|
|
params.put("drama_project_storyboard_id", drama_project_storyboard_id);
|
|
// - is_save: 是否转存到 cos/tos
|
|
// - is_save: 是否转存到 cos/tos
|
|
- comfyUISocketService.connectToSse(client_id, 8000, false, params).subscribe();
|
|
|
|
|
|
+ comfyUISocketService.connectToSse(client_id, 8000, IS_SAVE, params).subscribe();
|
|
|
|
|
|
// -- [ComfyUI] 生图参数 ----------------------------------------
|
|
// -- [ComfyUI] 生图参数 ----------------------------------------
|
|
ComfyuiText2Image comfyuiText2Image = new ComfyuiText2Image();
|
|
ComfyuiText2Image comfyuiText2Image = new ComfyuiText2Image();
|