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

+ 3 - 3
controllers/base_auth.go

@@ -205,9 +205,9 @@ func (c *BaseAuthController) Prepare() {
 			uri = uris[0]
 			fmt.Println("uri:",uri)
 			if !strings.Contains(api,uri) {
-				c.JSON(models.BaseResponse{Ret: 403, Msg: "无权访问!", ErrMsg: "无权访问!"}, false, false)
-				c.StopRun()
-				return
+				//c.JSON(models.BaseResponse{Ret: 403, Msg: "无权访问!", ErrMsg: "无权访问!"}, false, false)
+				//c.StopRun()
+				//return
 			}
 		} else {
 			c.JSON(models.BaseResponse{Ret: 408, Msg: "请求异常,请联系客服!", ErrMsg: "POST之外的请求,暂不支持"}, false, false)