From 700f7d39a17a638cb1d8edad3479e7f4730248ec Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Thu, 2 Sep 2021 11:12:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dopenapi=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/container.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/models/container.go b/models/container.go index b690500..ef693bc 100644 --- a/models/container.go +++ b/models/container.go @@ -389,9 +389,10 @@ func (c *Container) request(ss ...string) ([]byte, error) { method = s } else if strings.Contains(s, "/api/") { if c.Version == "2.9" { - strings.ReplaceAll(s, "api", "open") + api = strings.ReplaceAll(s, "api", "open") + } else { + api = s } - api = s } else { body = s }