diff --git a/response.go b/response.go index fa1513a17d6d2f8c6f088ba9697d38da73decaf3..bca56a83ad35f4696012cea566ff42fc30ae749d 100644 --- a/response.go +++ b/response.go @@ -48,7 +48,7 @@ type JsapiTicket struct { type SessionKey struct { OpenId string `json:"openid"` // 用户唯一标识 - SessionKey int64 `json:"session_key"` // 会话密钥 + SessionKey string `json:"session_key"` // 会话密钥 UnionId string `json:"unionid"` // 只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段。 ErrCode int `json:"errcode"` // 错误码 ErrMsg string `json:"errmsg"` // 错误信息 diff --git a/service_auth_api.go b/service_auth_api.go index 38cc764309d7bc84dc2a4793c60b14d2571f9814..a7079ea2dc8f5d9a79126c5fe2f2c2a823e596f8 100644 --- a/service_auth_api.go +++ b/service_auth_api.go @@ -1,5 +1,6 @@ /* 网页授权相关的接口。 + https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html */ package wechat