From 68af080bda00fcafea7897a1b7516d1bbb13f262 Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Thu, 2 Sep 2021 14:01:40 +0800 Subject: [PATCH] Changes --- models/container.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/models/container.go b/models/container.go index 8a6d809..39aba17 100644 --- a/models/container.go +++ b/models/container.go @@ -394,12 +394,12 @@ func (c *Container) request(ss ...string) ([]byte, error) { 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 + if c.Version == "2.9" { + api = strings.ReplaceAll(s, "api", "open") + } else { + api = s + } + //api = s } else { body = s }