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