longyu 2 yıl önce
ebeveyn
işleme
29ebe5ad49
1 değiştirilmiş dosya ile 3 ekleme ve 4 silme
  1. 3 4
      controllers/base_auth.go

+ 3 - 4
controllers/base_auth.go

@@ -32,10 +32,9 @@ func (this *BaseAuthController) Prepare() {
 	fmt.Println("enter prepare")
 	method := this.Ctx.Input.Method()
 	uri := this.Ctx.Input.URI()
-	fmt.Println("Url:", uri)
-
-	ip:=this.Ctx.Input.IP()
-	if strings.Contains(ip,"61.140.25.94") {
+	ip := this.Ctx.Input.IP()
+	fmt.Println("Url:", uri+";ip:"+ip)
+	if strings.Contains(ip, "61.140.25.94") {
 		this.JSON(models.BaseResponse{Ret: 6000, Msg: "该图表已被删除", ErrMsg: "该图表已被删除"}, false, false)
 		this.StopRun()
 		return