feat(product-suite): enable direct generation flow

This commit is contained in:
chengma
2026-07-20 18:37:27 +08:00
parent aa000ff5e6
commit 2e6b93d7e0
8 changed files with 242 additions and 17 deletions
+6
View File
@@ -385,6 +385,12 @@ class ProductSuiteGenerateWorker(BaseWorker):
raise ValueError("商品套图生成任务不能为空")
jobs = []
source = image_studio_generation.generation_source_for_config(self.config)
source_label = (
"自定义网关"
if source["generation_source"] == image_studio.GENERATION_SOURCE_DIRECT
else "默认网关"
)
self.log.emit("[商品套图] 使用%s开始生成%d张" % (source_label, total))
for spec in self.job_specs:
jobs.append(
image_studio.create_job(