fix 管理员失效BUG

This commit is contained in:
ZJY 2021-09-09 16:14:45 +08:00
parent 1d6cffa81c
commit d1f5e8fa01

View File

@ -316,7 +316,7 @@ var codeSignals = []CodeSignal{
Admin: true,
Handle: func(sender *Sender) interface{} {
ctt := sender.JoinContens()
db.Model(&UserAdmin{}).Delete(Content+" = ?", ctt)
db.Model(&UserAdmin{}).Delete("", ctt)
return "已取消管理员"
},
},