add 新增IsHelp参数 默认false 默认不填充助力码需要的自己开 旧的助力码自己手动删除

This commit is contained in:
ZJY 2021-09-14 00:59:59 +08:00
parent c4700d3e86
commit fe0e82dfb9

View File

@ -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 || !Config.IsHelp {
if len(c.Delete) > 0 {
c.request("/api/envs", DELETE, fmt.Sprintf(`[%s]`, strings.Join(c.Delete, ",")))
}
hh := []string{}