Skip to content

Commit

Permalink
修复限期天数为0不执行过期操作的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Sep 19, 2021
1 parent d55ed1e commit 11a00d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (mysql *Mysql) DailyCheckExpire() (bool, error) {
return false, errors.New("can't connect mysql")
}
defer db.Close()
userList, err := queryUserList(db, "SELECT * FROM users WHERE useDays != 0 AND quota != 0")
userList, err := queryUserList(db, "SELECT * FROM users WHERE quota != 0")
if err != nil {
return false, err
}
Expand Down

0 comments on commit 11a00d9

Please sign in to comment.