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 {