mirror of
https://github.com/w7corp/easywechat.git
synced 2025-01-22 19:52:10 +00:00
Updated 素材管理 (markdown)
parent
f9b53f0777
commit
a5e22eec5d
4
素材管理.md
4
素材管理.md
@ -85,9 +85,9 @@ $appId = 'wx3cf0f39249eb0e60';
|
|||||||
$secret = 'f1c242f4f28f735d4687abb469072a29';
|
$secret = 'f1c242f4f28f735d4687abb469072a29';
|
||||||
|
|
||||||
$media = new Media($appId, $secret);
|
$media = new Media($appId, $secret);
|
||||||
$imageId = $media->image(__DIR__ . '/demo.jpg'); // 上传并返回媒体ID
|
$image = $media->image(__DIR__ . '/demo.jpg'); // 上传并返回媒体ID
|
||||||
|
|
||||||
$message = Message::make('image')->media($imageId);
|
$message = Message::make('image')->media($image['media_id']);
|
||||||
```
|
```
|
||||||
|
|
||||||
更多请参考官方文档:http://mp.weixin.qq.com/wiki/home/index.html `素材管理` 章节
|
更多请参考官方文档:http://mp.weixin.qq.com/wiki/home/index.html `素材管理` 章节
|
Loading…
Reference in New Issue
Block a user