File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 6
6
[ ![ license] ( https://img.shields.io/github/license/hillpy/MiniProgramSDK.svg )] ( https://github.com/hillpy/MiniProgramSDK/blob/master/LICENSE )
7
7
8
8
### 功能描述
9
- #### 封装微信小程序php端相关接口,比如php端微信用户信息解密(即登陆功能)、获取sessionKey等等。主要功能为后端用户信息解密 。
9
+ #### 封装微信小程序php端相关接口,比如php端微信用户信息解密(即登陆功能)、获取sessionKey、获取小程序码等等 。
10
10
11
11
### 安装方法
12
12
@@ -20,7 +20,7 @@ composer require hillpy/mini-program-sdk
20
20
21
21
### 使用方法
22
22
23
- * 以下为代码实例
23
+ * 实例化开发包、accessToken获取及缓存
24
24
25
25
```
26
26
/**
@@ -63,7 +63,11 @@ if ($accessToken == '') {
63
63
} else {
64
64
echo 'accessToken:' . $accessToken . '<br>';
65
65
}
66
+ ```
67
+
68
+ * 解密登录用户数据
66
69
70
+ ```
67
71
// 解密登录用户数据
68
72
$paramArr['code'] = '';
69
73
$paramArr['rawData'] = '';
@@ -79,6 +83,7 @@ if ($res['code'] == 100) {
79
83
}
80
84
```
81
85
86
+
82
87
### 仓库地址
83
88
84
89
[ Coding] ( https://coding.net/u/shinn_lancelot/p/MiniProgramSDK/git " MiniProgramSDK ") <br >
You can’t perform that action at this time.
0 commit comments