完善二期清单
This commit is contained in:
@@ -195,10 +195,16 @@ def _product_context(project, selling_point_ids: list[str] | None) -> str:
|
||||
if selling_point_ids:
|
||||
selling_points = selling_points.filter(id__in=selling_point_ids)
|
||||
selling_text = "\n".join(f"- {sp.title}:{sp.detail}" for sp in selling_points)
|
||||
business_type = getattr(product, "business_type", "") or "ecommerce"
|
||||
if business_type == "local_life":
|
||||
type_line = "业务类型:本地生活(团购/到店核销,无实物,按虚拟商品走主流程 SOP)\n"
|
||||
else:
|
||||
type_line = "业务类型:电商(实物商品)\n"
|
||||
return (
|
||||
f"商品标题:{product.title}\n"
|
||||
f"品牌:{product.brand or '未填写'}\n"
|
||||
f"类目:{product.category or '未填写'}\n"
|
||||
f"{type_line}"
|
||||
f"品类:{product.category or '未填写'}\n"
|
||||
f"目标人群:{product.target_audience or '未填写'}\n"
|
||||
f"商品描述:{product.description or '未填写'}\n"
|
||||
f"卖点:\n{selling_text or '未勾选卖点,请根据商品信息自行提炼。'}"
|
||||
|
||||
Reference in New Issue
Block a user