feat: AI生图功能丰富

This commit is contained in:
2026-09-27 22:41:33 +08:00
parent 1c4fe1a836
commit 7f1503294f
20 changed files with 627 additions and 336 deletions
+2 -1
View File
@@ -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),