|
|
@@ -157,6 +157,7 @@ func WechatLogin(c *gin.Context) { |
|
|
|
e.OutErr(c, 400, e.NewErr(400, "获取微信信息失败")) |
|
|
|
return |
|
|
|
} |
|
|
|
utils.FilePutContents("WechatLogin", utils.SerializeStr(wechatResp)) |
|
|
|
req.OpenID = gjson.Get(string(wechatResp), "openid").String() |
|
|
|
req.UnionId = gjson.Get(string(wechatResp), "unionid").String() |
|
|
|
wechatToken := gjson.Get(string(wechatResp), "access_token").String() |
|
|
|