Skip to content

Commit cc326cf

Browse files
committed
文档更新
1 parent 9f4e353 commit cc326cf

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
> 1.x 的配置文件里面的项目为驼峰,2.x 系列已经改为下划线,请参考: [src/config.php](https://github.com/overtrue/laravel-wechat/blob/master/src/config.php)
66
7-
微信 SDK for Laravel 5, 基于 [overtrue/wechat](https://github.com/overtrue/wechat)
7+
微信 SDK for Laravel 5 / Lumen, 基于 [overtrue/wechat](https://github.com/overtrue/wechat)
88

99
本项目只适用于,只有一个固定的账号,如果是开发微信公众号管理系统就不要使用了,直接用 [overtrue/wechat](https://github.com/overtrue/wechat) 更方便些。
1010

@@ -16,6 +16,7 @@
1616
```shell
1717
composer require "overtrue/laravel-wechat:2.1.*"
1818
```
19+
1920
## 配置
2021

2122
### Laravel 应用
@@ -38,6 +39,7 @@
3839
```php
3940
'Wechat' => 'Overtrue\LaravelWechat\Facade',
4041
```
42+
4143
### Lumen 应用
4244

4345
1.`bootstrap/app.php` 中 82 行左右:
@@ -50,10 +52,10 @@
5052

5153
```php
5254
WECHAT_USE_ALIAS=false
53-
WECHAT_APPID=你的微信APPid
54-
WECHAT_SECRET=你的secret
55-
WECHAT_TOKEN=你的token
56-
WECHAT_ENCODING_KEY=AESkey
55+
WECHAT_APPID=xxx
56+
WECHAT_SECRET=xxx
57+
WECHAT_TOKEN=xxx
58+
WECHAT_ENCODING_KEY=xxx
5759
```
5860
3. 如果你习惯使用 `config/wechat.php` 来配置的话,请记得在 `bootstrap/app.php` 中19行以后添加:
5961

0 commit comments

Comments
 (0)