add QQ扫码登录
This commit is contained in:
parent
5ae6ee1b1d
commit
229da92eb7
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user