Commit c89e7ff4 by yemin

no message

parent 46d217c8
module "WeChatSDK"
\ No newline at end of file
module WeChatSDK
go 1.16
package response
import (
response2 "WeChatSDK/core/response"
"WeChatSDK/core/response"
)
type ResponseCode2Session struct {
......@@ -9,5 +9,5 @@ type ResponseCode2Session struct {
SessionKey string `json:"session_key"` //会话密钥
UnionID string `json:"unionid"` //用户在开放平台的唯一标识符,若当前小程序已绑定到微信开放平台帐号下会返回,详见 UnionID 机制说明。
*response2.ResponseMiniProgram
response.ResponseMiniProgram
}
package test
import (
"WeChatSDK/miniprogram/auth"
"fmt"
"log"
"testing"
)
func TestCode2Session(t *testing.T) {
r,err:=auth.NewClient().Code2Session("ffdsfadfdfdas","","")
log.Println(err)
log.Println(fmt.Sprintf("%+v\n", *r))
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment