升级WxPusher接口支持标题

This commit is contained in:
ngfchl
2023-05-06 23:38:30 +08:00
parent fc891f0ccb
commit 17009f4e27

View File

@@ -26,7 +26,7 @@ from lxml import etree
from pypushdeer import PushDeer
from requests import Response, ReadTimeout
from urllib3.exceptions import NewConnectionError, ConnectTimeoutError, MaxRetryError
from wxpusher import WxPusher
from util.wxpusher import WxPusher
from auto_pt.models import Notify, OCR
from pt_site.models import MySite, SignIn, TorrentInfo, SiteStatus, Site
@@ -159,8 +159,9 @@ class PtSpider:
if notify.name == PushConfig.wxpusher_push:
"""WxPusher通知"""
res = WxPusher.send_message(
summary=title,
content=message,
url=url,
url='https://ptools.fun',
uids=notify.touser.split(','),
token=notify.corpsecret,
content_type=3, # 1文本2html3markdown