add 增加查询次数限制等各种命令限制
This commit is contained in:
parent
e0ed3bdf60
commit
8daa47e98a
@ -26,11 +26,13 @@ func getLimit(uid int, typ int) bool {
|
||||
return false
|
||||
}
|
||||
} else {
|
||||
db.Begin()
|
||||
u.ActiveAt = time.Now().Format("2006-01-02")
|
||||
u.Typ = typ
|
||||
u.Number = uid
|
||||
u.Num = 1
|
||||
db.Create(u)
|
||||
db.Commit()
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user