From a5e22eec5db235df27c37a87f8430188176653a5 Mon Sep 17 00:00:00 2001 From: David Stotijn Date: Tue, 20 Oct 2015 17:42:42 +0200 Subject: [PATCH] =?UTF-8?q?Updated=20=E7=B4=A0=E6=9D=90=E7=AE=A1=E7=90=86?= =?UTF-8?q?=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 素材管理.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/素材管理.md b/素材管理.md index c6758c2..7854cb2 100644 --- a/素材管理.md +++ b/素材管理.md @@ -85,9 +85,9 @@ $appId = 'wx3cf0f39249eb0e60'; $secret = 'f1c242f4f28f735d4687abb469072a29'; $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 `素材管理` 章节 \ No newline at end of file