From f03a809fa8cb9bdbb2dd86961bd784871fb79c08 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Sun, 18 Sep 2022 17:00:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=8F=91=E9=80=81=E7=BD=91?= =?UTF-8?q?=E7=AB=99=E5=8E=9F=E6=B6=88=E6=81=AF=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pt_site/UtilityTool.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index a6b0441..c21aafb 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -966,7 +966,7 @@ class PtSpider: @staticmethod def parse_message_num(messages: str): """ - + 解析网站消息条数 :param messages: :return: """ @@ -1126,8 +1126,10 @@ class PtSpider: mail_count = int(mail_count) if mail_count else 0 notice_count = int(notice_count) if notice_count else 0 if mail_count + notice_count > 0: + my_site.mail = mail_count + notice_count template = '### {} 有{}条新短消息,请注意及时查收!' - self.send_text(template.format(site.name, mail_count + notice_count)) + # 测试发送网站消息原内容 + self.send_text(template.format(site.name, mail_count + notice_count) + mail_str + notice_str) res_sp_hour = self.get_hour_sp(my_site=my_site) if res_sp_hour.code != StatusCodeEnum.OK.code: