From efe1fa3eb63c4a566b1f80b5c2a24ee404531a15 Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Mon, 27 Sep 2021 15:58:34 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=AC=A1=E6=95=B0=E9=99=90=E5=88=B6=E7=AD=89=E5=90=84=E7=A7=8D?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/SendLimit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }