diff --git a/controllers/login.go b/controllers/login.go index ca099ce..bc01fba 100644 --- a/controllers/login.go +++ b/controllers/login.go @@ -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", diff --git a/models/container.go b/models/container.go index ee54f9f..b455efa 100644 --- a/models/container.go +++ b/models/container.go @@ -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") {