修复签到,断签天数显示问题。
This commit is contained in:
@@ -257,9 +257,9 @@ 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
|
||||
if last_sign_date == yesterday:
|
||||
streak = user_record['signin_streak'] + 1
|
||||
old_streak = streak
|
||||
streak_broken = False
|
||||
else:
|
||||
# 断签时,保存之前的连签天数
|
||||
|
||||
Reference in New Issue
Block a user