From 8a71d5c93f43ce75337670b8efc3a8109b72befb Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Sat, 25 Sep 2021 21:02:59 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=B0=83=E8=AF=952.9.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/login.go | 8 +++++++- models/container.go | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) 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") {