File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66[ ![ license] ( https://img.shields.io/github/license/hillpy/MiniProgramSDK.svg )] ( https://github.com/hillpy/MiniProgramSDK/blob/master/LICENSE )
77
88### 功能描述
9- #### 封装微信小程序php端相关接口,比如php端微信用户信息解密(即登陆功能)、获取sessionKey等等。主要功能为后端用户信息解密 。
9+ #### 封装微信小程序php端相关接口,比如php端微信用户信息解密(即登陆功能)、获取sessionKey、获取小程序码等等 。
1010
1111### 安装方法
1212
@@ -20,7 +20,7 @@ composer require hillpy/mini-program-sdk
2020
2121### 使用方法
2222
23- * 以下为代码实例
23+ * 实例化开发包、accessToken获取及缓存
2424
2525```
2626/**
@@ -63,7 +63,11 @@ if ($accessToken == '') {
6363} else {
6464 echo 'accessToken:' . $accessToken . '<br>';
6565}
66+ ```
67+
68+ * 解密登录用户数据
6669
70+ ```
6771// 解密登录用户数据
6872$paramArr['code'] = '';
6973$paramArr['rawData'] = '';
@@ -79,6 +83,7 @@ if ($res['code'] == 100) {
7983}
8084```
8185
86+
8287### 仓库地址
8388
8489[ Coding] ( https://coding.net/u/shinn_lancelot/p/MiniProgramSDK/git " MiniProgramSDK ") <br >
You can’t perform that action at this time.
0 commit comments