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

This commit is contained in:
ZJY 2021-09-14 00:43:44 +08:00
parent 8255ff6c74
commit c4700d3e86

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 {
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 {