修复戒烟首页与统计中抽烟/忍住口径混淆
This commit is contained in:
@@ -494,7 +494,7 @@ func (s *SmokeAINextSmokeService) loadRecent3Days(ctx context.Context, uid int,
|
||||
}
|
||||
snap := ensure(day)
|
||||
|
||||
isResisted := l.Num == 0
|
||||
isResisted := l.Level == 0 && l.Num == 0
|
||||
if isResisted {
|
||||
snap.ResistedCount++
|
||||
} else if l.Num > 0 {
|
||||
|
||||
Reference in New Issue
Block a user