取消订单,模板消息小程序链接

This commit is contained in:
aaron 2025-02-23 01:44:14 +08:00
parent 647bf6722a
commit 43203edc95

View File

@ -665,8 +665,12 @@ async def cancel_order(
"character_string1": order.orderid,
"time19": CommonUtils.get_current_time(),
"thing5": "用户主动取消订单"
},
miniprogram={
"appid": settings.WECHAT_APPID,
"path": f"/pages/order/detail/index?id={order.orderid}"
}
)
)
return success_response(
message="订单取消成功",
@ -859,9 +863,13 @@ async def deliveryman_cancel_order(
data={
"character_string1": order.orderid,
"time19": CommonUtils.get_current_time(),
"thing5": order.cancel_reason
}
)
"thing5": order.cancel_reason
},
miniprogram={
"appid": settings.WECHAT_APPID,
"path": f"/pages/order/detail/index?id={order.orderid}"
}
)
return success_response(
message="订单取消成功",
data=OrderInfo.model_validate(order)