当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 98

flanche/微信Go SDK
暂停

forked from bozz/微信Go SDK
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
wx_openid_by_authcode_test.go 418 Bytes
一键复制 编辑 原始数据 按行查看 历史
leexs 提交于 2019-09-05 16:47 . 对接授权相关的4个接口
package wechat
import (
"fmt"
"testing"
)
// 测试授权码查询openid
func TestOpenIdByAuthCode(t *testing.T) {
fmt.Println("----------授权码查询openid----------")
// 初始化参数
body := OpenIdByAuthCodeBody{}
body.AuthCode = "134878838249661612"
// 请求支付
wxRsp, err := testClient.OpenIdByAuthCode(body)
if err != nil {
t.Error(err)
return
}
fmt.Printf("返回值: %+v\n", wxRsp)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/flanche/wechat.git
git@gitee.com:flanche/wechat.git
flanche
wechat
微信Go SDK
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385