|
@@ -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
|