✏️ 修复 control 全局禁用

This commit is contained in:
fumiama
2021-11-27 00:56:22 +08:00
parent d4bceb1922
commit f8ca9355d2
2 changed files with 2 additions and 6 deletions

View File

@@ -94,7 +94,6 @@ func (m *Control) IsEnabledIn(gid int64) bool {
m.RLock()
err = db.Find(m.service, &c, "WHERE gid = "+strconv.FormatInt(gid, 10))
m.RUnlock()
logrus.Debugln("[control] db find gid =", c.GroupID)
if err == nil && gid == c.GroupID {
logrus.Debugf("[control] plugin %s of grp %d : %d", m.service, c.GroupID, c.Disable)
return c.Disable == 0