add QQ扫码登录

This commit is contained in:
ZJY 2021-09-29 11:13:50 +08:00
parent 5ae6ee1b1d
commit 229da92eb7

View File

@ -84,11 +84,16 @@ func (c *LoginController) GetQrcode1() {
}
body, err1 := ioutil.ReadAll(rsp.Body)
if err1 == nil {
logs.Info("发生错误")
fmt.Println(string(body))
}
s := &models.QQuery{}
if len(body) > 0 {
json.Unmarshal(body, &s)
err := json.Unmarshal(body, &s)
if err != nil {
return
}
}
jsonByte, _ := json.Marshal(s)
jsonStr := string(jsonByte)