From 2f6f6a6f065e99c0888c94f92f8a719264c6994d Mon Sep 17 00:00:00 2001 From: overtrue Date: Sun, 26 Apr 2015 01:41:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=A1=E5=88=B8=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 二维码.md | 2 +- 卡券.md | 148 ++++++++++++++++++++++++++++++++++++++++++++++++++ 短链接.md | 2 +- 自定义菜单.md | 2 +- 4 files changed, 151 insertions(+), 3 deletions(-) create mode 100644 卡券.md diff --git a/二维码.md b/二维码.md index 341fd9a..5a07436 100644 --- a/二维码.md +++ b/二维码.md @@ -19,7 +19,7 @@ $qrcode = new QRCode($appId, $secret); ``` -## 方法 +## API + `Bag temporary($sceneId, $expireSeconds = null)` 创建临时二维码; + `Bag forever($sceneValue, $type = self::SCENE_QR_FOREVER)` 创建永久二维码,`$type`: `QR_LIMIT_SCENE` 为永久, `QR_LIMIT_STR_SCENE` 为永久的字符串参数值; diff --git a/卡券.md b/卡券.md new file mode 100644 index 0000000..8b534cb --- /dev/null +++ b/卡券.md @@ -0,0 +1,148 @@ +本 SDK 由 `Overtrue\Wechat\Card` 提供微信卡券等服务。 + +### 获取实例 + +```php +get();` 读取菜单 + `boolean $menu->set(array $menus);` 设置菜单,参数为一个包含最多三个一级菜单项的数组