Skip to content

Commit

Permalink
修改文档
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Feb 10, 2015
1 parent 4b8cc88 commit 7cadae0
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ echo $result;
| 文本 | `text` | `content` 内容 | |
| 图片 | `image` | `media_id` 媒体资源id | `media($path)` |
| 声音 | `voice` | `media_id` 媒体资源id | `media($path)` |
| 音乐 | `music` | `title` 标题 <br>`description` 描述 <br>`url` 音乐URL <br>`hq_url` 高清URL <br>`thumb_media_id` 封面资源id | `url($musicUrl)` <br>`hqUrl($music)` <br>`thumb($path)` |
| 音乐 | `music` | `title` 标题 <br>`description` 描述 <br>`url` 音乐URL <br>`hq_url` 高清URL <br>`thumb_media_id` 封面资源id | `thumb($path)` |
| 视频 | `video` | `title` 标题 <br>`description` 描述 <br>`media_id` 媒体资源id <br>`thumb_media_id` 封面资源id | `media($path)` <br>`thumb($path)` |
| 位置 | `location` | `lat` 地理位置纬度 <br>`lon` 地理位置经度 <br>`scale` 地图缩放大小 <br>`label` 地理位置信息 | |
| 链接 | `link` | `title` 标题 <br>`description` 描述<br>url 链接URL | |
Expand All @@ -296,17 +296,6 @@ $wechat->on('event', 'subscribe', function($event){
});
```

当然,消息是支持链式操作的,比如上面的例子可以写成:

```php
$message = Message::make('text')->content('您好!欢迎关注overtrue')->to($openId);
```
再或者:

```php
$message = Message::make('text')->content('您好!欢迎关注overtrue')->to($openId);
```

这里有一点需要注意,当属性带下划线的时候,方法名是支持两种的:`media_id()` 或者 `mediaId()` 都一样。

### 上传媒体文件
Expand Down

0 comments on commit 7cadae0

Please sign in to comment.