From c4700d3e862ab0e4d8dbb8da8615e68aaf5ff15f Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Tue, 14 Sep 2021 00:43:44 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=96=B0=E5=A2=9EIsHelp=E5=8F=82?= =?UTF-8?q?=E6=95=B0=20=E9=BB=98=E8=AE=A4false=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B8=8D=E5=A1=AB=E5=85=85=E5=8A=A9=E5=8A=9B=E7=A0=81=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E8=87=AA=E5=B7=B1=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/container.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/container.go b/models/container.go index 954d374..0ddb855 100644 --- a/models/container.go +++ b/models/container.go @@ -117,7 +117,7 @@ func (c *Container) write(cks []JdCookie) error { switch c.Type { case "ql": if c.Version == "2.9" || c.Version == "2.8" { - if len(c.Delete) > 0 { + if len(c.Delete) > 0 || !Config.IsHelp { c.request("/api/envs", DELETE, fmt.Sprintf(`[%s]`, strings.Join(c.Delete, ","))) } hh := []string{} @@ -129,7 +129,6 @@ func (c *Container) write(cks []JdCookie) error { } c.request("/api/envs", POST, fmt.Sprintf(`[%s]`, strings.Join(hh, ","))) if Config.IsHelp { - type AutoGenerated struct { Code int `json:"code"` Data []struct {