fix 调试2.9.5

This commit is contained in:
ZJY 2021-09-25 21:02:59 +08:00
parent ca8cae8b81
commit 8a71d5c93f
2 changed files with 8 additions and 1 deletions

View File

@ -435,13 +435,19 @@ func (c *LoginController) CkLogin() {
ck, _ := models.GetJdCookie(pin)
ck.InPool(key)
result.Message = fmt.Sprintf("更新成功")
result.Data = ck.Query()
//result.Data = ck.Query()
jsons, errs := json.Marshal(result) //转换成JSON返回的是byte[]
if errs != nil {
fmt.Println(errs.Error())
}
c.Ctx.WriteString(string(jsons))
}
result.Message = "登录成功"
jsons, errs := json.Marshal(result) //转换成JSON返回的是byte[]
if errs != nil {
fmt.Println(errs.Error())
}
c.Ctx.WriteString(string(jsons))
} else {
result := Result{
Data: "null",

View File

@ -490,6 +490,7 @@ func GetQlVersion(address string) (string, error) {
return "", err
}
v := ""
logs.Info(data)
if strings.Contains(data, "v2.8") {
v = "2.8"
} else if strings.Contains(data, "v2.2") {