From 2c8e240979207758e92730fb57decf7b104deb94 Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Sun, 29 Aug 2021 19:16:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DV2.9=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/container.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/models/container.go b/models/container.go index a9c365d..caff88e 100644 --- a/models/container.go +++ b/models/container.go @@ -237,7 +237,7 @@ func (c *Container) read() error { c.Available = true switch c.Type { case "ql": - if c.Version == "2.8" { + if c.Version == "2.8" || c.Version == "2.9" { type AutoGenerated struct { Code int `json:"code"` Data []struct { @@ -269,6 +269,7 @@ func (c *Container) read() error { } return nil } else { + logs.Warn(String(c.Version)) var data, err = c.request("/api/cookies") if err != nil { c.Available = false @@ -431,6 +432,8 @@ func GetQlVersion(address string) (string, error) { v = "2.8" } else if strings.Contains(data, "v2.2") { v = "2.2" + } else if strings.Contains(data, "v2.9") { + v = "2.9" } return v, nil }