update.
This commit is contained in:
parent
5fc85eaa39
commit
7c1e702d6e
@ -185,13 +185,13 @@ class WecomBot:
|
||||
try:
|
||||
if notify_type == OrderStatus.CREATED:
|
||||
title = "🆕 新订单通知"
|
||||
color = "green"
|
||||
color = "yellow"
|
||||
elif notify_type == OrderStatus.RECEIVED:
|
||||
title = "🚚 已接单通知"
|
||||
color = "blue"
|
||||
elif notify_type == OrderStatus.COMPLETED:
|
||||
title = "✅ 配送完成通知"
|
||||
color = "blue"
|
||||
color = "green"
|
||||
elif notify_type == OrderStatus.CANCELLED:
|
||||
title = "❌ 订单取消通知"
|
||||
color = "red"
|
||||
@ -200,11 +200,12 @@ class WecomBot:
|
||||
|
||||
content = f"""# {title}
|
||||
|
||||
> 订单号: <font color="{color}">{shipping_order.orderid}</font>
|
||||
> 订单号: {shipping_order.orderid}
|
||||
> 下单时间: {CommonUtils.get_asia_datetime(shipping_order.create_time)}
|
||||
> 包裹数量: {shipping_order.package_count}个
|
||||
> 订单金额: ¥{shipping_order.original_amount}
|
||||
> 实付金额: ¥{shipping_order.final_amount}
|
||||
> 订单状态: <font color="{color}">{shipping_order.status.status_text}</font>
|
||||
|
||||
**收件信息**
|
||||
> 姓名: {shipping_order.address_customer_name}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user