dengbiao 6 days ago
parent
commit
62c454c425
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/hdl/hdl_login.go

+ 1
- 0
app/hdl/hdl_login.go View File

@@ -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()


Loading…
Cancel
Save