add 增加查询次数限制等各种命令限制
This commit is contained in:
parent
5499197c99
commit
efe1fa3eb6
@ -12,7 +12,7 @@ type Limit struct {
|
||||
|
||||
func getLimit(uid int, typ int) bool {
|
||||
u := &Limit{}
|
||||
db.Where("number = ? and typ = ? and ActiveAt = ?", uid, typ, time.Now().Format("2006-01-02")).First(&u)
|
||||
db.Where("number = ? and typ = ? and activeat = ?", uid, typ, time.Now().Format("2006-01-02")).First(&u)
|
||||
if Config.Lim == 0 {
|
||||
return true
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user