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