zwxi 1 year ago
parent
commit
7c8924b842
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/base_auth.go

+ 1 - 1
controllers/base_auth.go

@@ -201,7 +201,7 @@ func (c *BaseAuthController) Prepare() {
 			api = strings.TrimRight(api,",")
 			uri = strings.Replace(uri,"/adminapi","",1)
 			if !strings.Contains(api,uri) {
-				c.JSON(models.BaseResponse{Ret: 403, Msg: "无权访问!", ErrMsg: "无权访问!"}, false, false)
+				//c.JSON(models.BaseResponse{Ret: 403, Msg: "无权访问!", ErrMsg: "无权访问!"}, false, false)
 				//c.StopRun()
 				//return
 			}