修复签到,断签天数显示问题。

This commit is contained in:
liuwei
2025-04-15 14:01:56 +08:00
parent abac288369
commit 9293f58e20

View File

@@ -257,8 +257,8 @@ class MessageSignPlugin(MessagePluginInterface):
last_sign_date = pytz.timezone(self.timezone).localize(last_sign_date)
self.LOG.info(
f"last_sign_date: {last_sign_date}, yesterday: {yesterday}, user_streak: {user_record['signin_streak']}")
old_streak = streak
streak = user_record['signin_streak'] + 1
old_streak = streak
if last_sign_date == yesterday:
streak_broken = False
else: