feat: AI生图功能丰富
This commit is contained in:
@@ -202,7 +202,8 @@ async def create_materials(
|
||||
await db.commit()
|
||||
await db.refresh(product)
|
||||
|
||||
if queued:
|
||||
# 多批上报的最后一批可能全被去重;仍要扫描此前批次留下的 pending 素材。
|
||||
if req.process_assets:
|
||||
background.add_task(process_product_assets, str(product.id))
|
||||
return MaterialsResponse(
|
||||
product_id=str(product.id),
|
||||
|
||||
Reference in New Issue
Block a user