From 47638c52937bbd840f76d88d7edd7fbe66fddb51 Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Sun, 29 Aug 2021 19:29:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DV2.9=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20=E5=85=BC=E5=AE=B9V2.8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/container.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/container.go b/models/container.go index ca626a3..531c523 100644 --- a/models/container.go +++ b/models/container.go @@ -113,7 +113,7 @@ func initContainer() { func (c *Container) write(cks []JdCookie) error { switch c.Type { case "ql": - if c.Version == "2.8" { + if c.Version == "2.8" || c.version = "2.9"{ if len(c.Delete) > 0 { c.request("/api/envs", DELETE, fmt.Sprintf(`[%s]`, strings.Join(c.Delete, ","))) } @@ -237,7 +237,7 @@ func (c *Container) read() error { c.Available = true switch c.Type { case "ql": - if c.Version == "2.9" { + if c.Version == "2.8" || c.version = "2.9"{ type AutoGenerated struct { Code int `json:"code"` Data []struct {