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