Skip to content

Commit 5eafb98

Browse files
1. 修改README.md
1 parent f786112 commit 5eafb98

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>

0 commit comments

Comments
 (0)