From 1d6cffa81c6c9d906a596da8694e8f4512dd9a63 Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Thu, 9 Sep 2021 16:07:31 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=AE=A1=E7=90=86=E5=91=98=E5=A4=B1?= =?UTF-8?q?=E6=95=88BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/command.go b/models/command.go index a7fde93..0a44766 100644 --- a/models/command.go +++ b/models/command.go @@ -316,7 +316,7 @@ var codeSignals = []CodeSignal{ Admin: true, Handle: func(sender *Sender) interface{} { ctt := sender.JoinContens() - db.Delete(&UserAdmin{}).Where(Content+" = ?", ctt) + db.Model(&UserAdmin{}).Delete(Content+" = ?", ctt) return "已取消管理员" }, },