From c02b74888528952f81f10f98f4121d54b5444d6b Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Mon, 27 Sep 2021 16:13:26 +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 | 1 + 1 file changed, 1 insertion(+) diff --git a/models/SendLimit.go b/models/SendLimit.go index aa219ca..d64485e 100644 --- a/models/SendLimit.go +++ b/models/SendLimit.go @@ -17,6 +17,7 @@ func getLimit(uid int, typ int) bool { if Config.Lim == 0 { return true } + logs.Info("开始限制") u := &Limit{} err := db.Where("number = ? and typ = ? and active_at = ?", uid, typ, time.Now().Format("2006-01-02")).First(&u).Error if err != nil {