Browse Source

fix:账户如果被禁用了,那么就强制退出

Roc 2 years ago
parent
commit
23ab40c596
1 changed files with 1 additions and 0 deletions
  1. 1 0
      controllers/base_auth.go

+ 1 - 0
controllers/base_auth.go

@@ -102,6 +102,7 @@ func (c *BaseAuth) Prepare() {
 	}
 	if adminWx.Enabled != 1 {
 		c.TokenMsgError("账户信息异常!", "账户状态异常,强制退出")
+		return
 	}
 	c.AdminWx = adminWx