fix 调试2.9.5
This commit is contained in:
parent
ca8cae8b81
commit
8a71d5c93f
@ -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",
|
||||
|
||||
@ -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") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user