fix: simplify auto process titles and notices
This commit is contained in:
@@ -84,14 +84,13 @@ def _build_upload_title(intent: str, analysis: Dict, requirement_text: str, idx:
|
||||
return f"{suggested}_{idx}"
|
||||
subject = _safe_name(str(analysis.get("subject") or ""), "")
|
||||
proc_type = _safe_name(str(analysis.get("proc_type") or ""), "")
|
||||
requirement = _safe_name(str(requirement_text or ""), "")
|
||||
action = "修复" if intent == "repair" else "原图"
|
||||
action = "高清修复" if intent == "repair" else "找原图"
|
||||
|
||||
parts = [part for part in (subject, proc_type, requirement) if part]
|
||||
parts = [part for part in (subject, proc_type) if part]
|
||||
if parts:
|
||||
base = "_".join(parts[:2])
|
||||
else:
|
||||
base = "图片识别结果"
|
||||
base = "图片素材"
|
||||
|
||||
return f"{base}_{action}_{idx}"
|
||||
|
||||
@@ -187,7 +186,6 @@ class AutoImagePipelineService:
|
||||
"【AI自动转设计师】",
|
||||
f"店铺:{acc_id or '-'}",
|
||||
f"客户:{customer_id or '-'}",
|
||||
f"设计师:{designer_name or '-'}",
|
||||
f"需求:{requirement_text or '-'}",
|
||||
f"类型:{'高清修复' if intent == 'repair' else '找原图'}",
|
||||
f"默认价格:{AUTO_PROCESS_PRICE}元",
|
||||
@@ -209,7 +207,6 @@ class AutoImagePipelineService:
|
||||
"【AI处理完成】",
|
||||
f"店铺:{acc_id or '-'}",
|
||||
f"客户:{customer_id or '-'}",
|
||||
f"设计师:{designer_name or '-'}",
|
||||
f"默认价格:{AUTO_PROCESS_PRICE}元",
|
||||
]
|
||||
if links:
|
||||
|
||||
Reference in New Issue
Block a user