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