修复==号问题

This commit is contained in:
ZJY 2021-08-29 19:30:36 +08:00
parent 47638c5293
commit 567c6a9868

View File

@ -113,7 +113,7 @@ func initContainer() {
func (c *Container) write(cks []JdCookie) error {
switch c.Type {
case "ql":
if c.Version == "2.8" || c.version = "2.9"{
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.8" || c.version = "2.9"{
if c.Version == "2.8" || c.version == "2.9"{
type AutoGenerated struct {
Code int `json:"code"`
Data []struct {