feat(product-suite): enable direct generation flow
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user