package
1.1.2
Repository: https://github.com/gitcpu-io/zgo.git
Documentation: pkg.go.dev

# Functions

获取微信小程序用户的OpenId、SessionKey、UnionId appId:APPID appSecret:AppSecret wxCode:小程序调用wx.login 获取的code 文档:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html.
解密开放数据到 zgoutils.BodyMap encryptedData:包括敏感数据在内的完整用户信息的加密数据,小程序获取到 iv:加密算法的初始向量,小程序获取到 sessionKey:会话密钥,通过 gopay.Code2Session() 方法获取到 文档:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/signature.html.
解密开放数据到结构体 encryptedData:包括敏感数据在内的完整用户信息的加密数据,小程序获取到 iv:加密算法的初始向量,小程序获取到 sessionKey:会话密钥,通过 gopay.Code2Session() 方法获取到 beanPtr:需要解析到的结构体指针,操作完后,声明的结构体会被赋值 文档:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/signature.html.
获取微信小程序全局唯一后台接口调用凭据(AccessToken:157字符) appId:APPID appSecret:AppSecret 获取access_token文档:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken.html.
微信小程序用户支付完成后,获取该用户的 UnionId,无需用户授权。 accessToken:接口调用凭据 openId:用户的OpenID transactionId:微信支付订单号 文档:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/user-info/auth.getPaidUnionId.html.
App应用微信第三方登录,code换取access_token appId:应用唯一标识,在微信开放平台提交应用审核通过后获得 appSecret:应用密钥AppSecret,在微信开放平台提交应用审核通过后获得 code:App用户换取access_token的code.
获取用户基本信息(UnionID机制) accessToken:接口调用凭据 openId:用户的OpenID lang:默认为 zh_CN ,可选填 zh_CN 简体,zh_TW 繁体,en 英语 获取用户基本信息(UnionID机制)文档:https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140839.
No description provided by the author
初始化微信客户端 ok appId:应用ID mchId:商户ID ApiKey:API秘钥值 IsProd:是否是正式环境.
刷新App应用微信第三方登录后,获取的 access_token appId:应用唯一标识,在微信开放平台提交应用审核通过后获得 appSecret:应用密钥AppSecret,在微信开放平台提交应用审核通过后获得 code:App用户换取access_token的code.

# Constants

中国国内.
中国国内(冗灾方案).
No description provided by the author
其他国家.
No description provided by the author
签名方式.
东南亚.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
支付类型.
No description provided by the author

# Structs

No description provided by the author
微信小程序解密后 用户信息结构体.
App应用微信第三方登录,code换取access_token.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
授权码查询openid 返回.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
刷新App应用微信第三方登录后,获取的 access_token.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
微信小程序解密后 用户手机号结构体.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author