diff --git a/models/SendLimit.go b/models/SendLimit.go index cd60ebc..dd9ff50 100644 --- a/models/SendLimit.go +++ b/models/SendLimit.go @@ -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 }