mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
1. 因为微信接收企业微信消息不支持markdown格式,故改为text模式发送,可能显示未markdown源码
This commit is contained in:
@@ -118,7 +118,10 @@ class PtSpider:
|
||||
corp_id=notify.corpid,
|
||||
secret=notify.corpsecret,
|
||||
agent_id=notify.agentid, )
|
||||
res = notify_push.send_markdown(text)
|
||||
res = notify_push.send_text(
|
||||
text=text,
|
||||
to_uid=notify.touser if notify.touser else '@all'
|
||||
)
|
||||
|
||||
print(res)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user