From c37d42b9949080496352f7f2d0372c70cb9cad55 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 31 Jan 2018 18:37:31 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WeChat/Media.php | 4 ++-- WeChat/Menu.php | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/WeChat/Media.php b/WeChat/Media.php index e3e8a4a..20603d3 100644 --- a/WeChat/Media.php +++ b/WeChat/Media.php @@ -58,7 +58,7 @@ class Media extends WeChat } /** - * 新增临时素材 + * 新增图文素材 * @param array $data 文件名称 * @return array * @throws Exceptions\LocalCacheException @@ -72,7 +72,7 @@ class Media extends WeChat } /** - * 新增临时素材 + * 更新图文素材 * @param string $media_id 要修改的图文消息的id * @param int $index 要更新的文章在图文消息中的位置(多图文消息时,此字段才有意义),第一篇为0 * @param array $news 文章内容 diff --git a/WeChat/Menu.php b/WeChat/Menu.php index 8e8620d..2996156 100644 --- a/WeChat/Menu.php +++ b/WeChat/Menu.php @@ -59,6 +59,9 @@ class Menu extends WeChat */ public function create(array $data) { + try { + } catch (\Exception $e) { + } $url = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN"; $this->registerApi($url, __FUNCTION__, func_get_args()); return $this->httpPostForJson($url, $data);