From 17009f4e272859d36342c92b088c2bf5534da863 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Sat, 6 May 2023 23:38:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7WxPusher=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pt_site/UtilityTool.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index 6efefc7..d172647 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -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:文本,2:html,3:markdown