修复V2.9面板问题
This commit is contained in:
parent
dbe8251426
commit
2c8e240979
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user