Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wechat-client-sdk
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
go
wechat-client-sdk
Commits
c89e7ff4
Commit
c89e7ff4
authored
Oct 12, 2022
by
yemin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
46d217c8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
go.mod
go.mod
+3
-2
responseCode2Session.go
miniprogram/auth/response/responseCode2Session.go
+2
-2
client_test.go
test/client_test.go
+14
-0
No files found.
go.mod
View file @
c89e7ff4
module "WeChatSDK"
module WeChatSDK
\ No newline at end of file
go 1.16
miniprogram/auth/response/responseCode2Session.go
View file @
c89e7ff4
package
response
package
response
import
(
import
(
response2
"WeChatSDK/core/response"
"WeChatSDK/core/response"
)
)
type
ResponseCode2Session
struct
{
type
ResponseCode2Session
struct
{
...
@@ -9,5 +9,5 @@ type ResponseCode2Session struct {
...
@@ -9,5 +9,5 @@ type ResponseCode2Session struct {
SessionKey
string
`json:"session_key"`
//会话密钥
SessionKey
string
`json:"session_key"`
//会话密钥
UnionID
string
`json:"unionid"`
//用户在开放平台的唯一标识符,若当前小程序已绑定到微信开放平台帐号下会返回,详见 UnionID 机制说明。
UnionID
string
`json:"unionid"`
//用户在开放平台的唯一标识符,若当前小程序已绑定到微信开放平台帐号下会返回,详见 UnionID 机制说明。
*
response2
.
ResponseMiniProgram
response
.
ResponseMiniProgram
}
}
test/client_test.go
0 → 100644
View file @
c89e7ff4
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
))
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment