longyu 2 years ago
parent
commit
840ee1f4f6
1 changed files with 0 additions and 7 deletions
  1. 0 7
      controllers/base_auth.go

+ 0 - 7
controllers/base_auth.go

@@ -8,7 +8,6 @@ import (
 	"net/http"
 	"net/url"
 	"github.com/beego/beego/v2/server/web"
-	"strings"
 
 	"github.com/rdlucklib/rdluck_tools/log"
 )
@@ -34,12 +33,6 @@ func (this *BaseAuthController) Prepare() {
 	uri := this.Ctx.Input.URI()
 	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
-	}
-
 	if method != "HEAD" {
 		if method == "POST" || method == "GET" {
 			//authorization := this.Ctx.Input.Header("authorization")