From c57f32b6de9af937354890e223debf30cac03abf Mon Sep 17 00:00:00 2001 From: ngfchl Date: Wed, 14 Dec 2022 23:15:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E7=AB=99?= =?UTF-8?q?=E7=82=B9=E8=8E=B7=E5=8F=96=E5=88=B0=E6=96=B0=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=97=B6=E6=8A=A5=E9=94=99=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pt_site/UtilityTool.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index ee8c35d..f231f2a 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -1534,9 +1534,7 @@ class PtSpider: if my_site.mail > 0: template = '### {} 有{}条新短消息,请注意及时查收! \n' # 测试发送网站消息原内容 - self.send_text( - template.format(site.name, my_site.mail) + mail_str + '\n' + notice_str - ) + self.send_text(f'{template.format(site.name, my_site.mail)}\n{mail_str}\n{notice_str}') # ajax.php?action=user&id= details_response = details_html.get('response') stats = details_response.get('stats') @@ -1799,7 +1797,7 @@ class PtSpider: template = '### {} 有{}条新短消息,请注意及时查收! \n' # 测试发送网站消息原内容 self.send_text( - template.format(site.name, mail_count + notice_count) + mail_str + '\n' + notice_str + f'{template.format(site.name, mail_count + notice_count)}\n{mail_str}\n{notice_str}' ) else: my_site.mail = 0