add QQ扫码登录
This commit is contained in:
parent
29a9a20488
commit
5ae6ee1b1d
@ -94,7 +94,7 @@ func (c *LoginController) GetQrcode1() {
|
||||
jsonStr := string(jsonByte)
|
||||
fmt.Printf("%v", jsonStr)
|
||||
//c.Ctx.WriteString(`{"url":"` + "url" + `","img":"` + string(s.Data.QqLoginQrcode.Bytes) + `"}`) //"data:image/png;base64," +
|
||||
c.Ctx.WriteString(string(s.Data.QqLoginQrcode.Bytes)) //"data:image/png;base64," +
|
||||
c.Ctx.WriteString(s.Data.QqLoginQrcode.Bytes) //"data:image/png;base64," +
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ type QQuery struct {
|
||||
Data struct {
|
||||
LSid string `json:"lSid"`
|
||||
QqLoginQrcode struct {
|
||||
Bytes byte `json:"bytes"`
|
||||
Bytes string `json:"bytes"`
|
||||
Sig string `json:"sig"`
|
||||
} `json:"qqLoginQrcode"`
|
||||
RedirectURL string `json:"redirectUrl"`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user