update
This commit is contained in:
parent
4550a10489
commit
36c7ac6f1b
@ -64,6 +64,8 @@ class MPClient:
|
||||
# 添加小程序跳转信息
|
||||
if miniprogram:
|
||||
message["miniprogram"] = miniprogram
|
||||
|
||||
print(f"发送模板消息: {message}")
|
||||
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.post(api_url, json=message) as response:
|
||||
|
||||
@ -14,7 +14,7 @@ async def sent_order_status_change_message(openid: str, orderid: str, template_i
|
||||
data=data,
|
||||
miniprogram={
|
||||
"appid": settings.WECHAT_APPID,
|
||||
"path": f"/pages/order/detail/index?id={orderid}"
|
||||
"pagepath": f"/pages/order/detail/index?id={orderid}"
|
||||
}
|
||||
)
|
||||
except Exception as e:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user