From 371256e24690c1b3672064342acdfb38aef5b9ff Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Thu, 2 Sep 2021 14:39:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D2.9=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E5=85=BC=E5=AE=B92.8=20=202.9=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/container.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/models/container.go b/models/container.go index e3544d9..c97853d 100644 --- a/models/container.go +++ b/models/container.go @@ -352,7 +352,7 @@ func (c *Container) read() error { func (c *Container) getToken() error { version, err := GetQlVersion(c.Address) - logs.Warn(err) + logs.Debug(err) if version == "2.9" { logs.Info("获取新版token") req := httplib.Get(c.Address + fmt.Sprintf(`/open/auth/token?client_id=%s&client_secret=%s`, c.Cid, c.Secret)) @@ -394,13 +394,11 @@ func (c *Container) request(ss ...string) ([]byte, error) { if s == GET || s == POST || s == PUT || s == DELETE { method = s } else if strings.Contains(s, "/api/") { - logs.Info(c.Version) if c.Version == "2.9" { api = strings.ReplaceAll(s, "api", "open") } else { api = s } - //api = s } else { body = s }