update
This commit is contained in:
parent
36c7ac6f1b
commit
7312aedaaf
@ -71,10 +71,11 @@ class MPClient:
|
|||||||
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()
|
||||||
|
|
||||||
|
print(f"发送模板消息结果: {result}")
|
||||||
|
|
||||||
if result.get("errcode") == 0:
|
if result.get("errcode") == 0:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
print(f"发送模板消息失败: {result}")
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user