This commit is contained in:
aaron 2025-03-08 13:39:51 +08:00
parent 4550a10489
commit 36c7ac6f1b
2 changed files with 3 additions and 1 deletions

View File

@ -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:

View File

@ -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: