mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
修复查看消息后更新消息数量不会变化的bug
This commit is contained in:
@@ -1228,7 +1228,8 @@ class PtSpider:
|
|||||||
template = '### <font color="red">{} 有{}条新短消息,请注意及时查收!</font>'
|
template = '### <font color="red">{} 有{}条新短消息,请注意及时查收!</font>'
|
||||||
# 测试发送网站消息原内容
|
# 测试发送网站消息原内容
|
||||||
self.send_text(template.format(site.name, mail_count + notice_count) + mail_str + notice_str)
|
self.send_text(template.format(site.name, mail_count + notice_count) + mail_str + notice_str)
|
||||||
|
if mail_str or notice_str:
|
||||||
|
my_site.mail = 0
|
||||||
res_sp_hour = self.get_hour_sp(my_site=my_site)
|
res_sp_hour = self.get_hour_sp(my_site=my_site)
|
||||||
if res_sp_hour.code != StatusCodeEnum.OK.code:
|
if res_sp_hour.code != StatusCodeEnum.OK.code:
|
||||||
logging.error(my_site.site.name + res_sp_hour.msg)
|
logging.error(my_site.site.name + res_sp_hour.msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user