From 394f73627dacbfc9ac6dc5d6f248851fe44991e1 Mon Sep 17 00:00:00 2001 From: listen <494177603@qq.com> Date: Tue, 20 Jul 2021 15:10:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=8F=E5=B0=91=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/base.go b/base.go index 2031050..9e7267a 100644 --- a/base.go +++ b/base.go @@ -3,7 +3,6 @@ package helper import ( "encoding/json" "git.tetele.net/tgo/conf" - "git.tetele.net/tgo/helper" "git.tetele.net/tgo/site" "git.tetele.net/tgo/userrpc" "io/ioutil" @@ -32,7 +31,7 @@ func (controller *BaseController)Construct(w http.ResponseWriter, req *http.Requ var replyJson []byte - helper.SetHeader(w, req) + SetHeader(w, req) if strings.ToUpper(req.Method) == "OPTIONS" { replyJson, _ = json.Marshal(1) @@ -57,7 +56,7 @@ func (controller *BaseController)Construct(w http.ResponseWriter, req *http.Requ controller.UserInfo, err = userrpc.GetUserByToken(controller.SiteInfo["database"], controller.Token, conf.USER_RPC_URL) } - controller.Domain = helper.GetDomain(req) + controller.Domain = GetDomain(req) //获取json数据 body, _ := ioutil.ReadAll(req.Body)