From 315c2da938e85abaf3d1c0f109c977a5e2cd1323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 21 Apr 2017 16:50:31 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E5=BE=AE=E4=BF=A1=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E5=AD=97=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Api.php | 2 +- application/wechat/view/keys.form.html | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/application/wechat/controller/Api.php b/application/wechat/controller/Api.php index 2902a8f53..6083080da 100644 --- a/application/wechat/controller/Api.php +++ b/application/wechat/controller/Api.php @@ -104,7 +104,7 @@ class Api extends Controller { return $this->wechat->music($info['music_title'], $info['music_desc'], $info['music_url'], $info['music_url'], $media_id)->reply(); case 'voice': /* 语音消息 */ empty($info['voice_url']) && exit('success'); - $media_id = WechatService::uploadForeverMedia($info['voice_url'], 'voice')->reply(); + $media_id = WechatService::uploadForeverMedia($info['voice_url'], 'voice'); empty($media_id) && exit('success'); return $this->wechat->voice($media_id)->reply(); case 'image': /* 图文消息 */ diff --git a/application/wechat/view/keys.form.html b/application/wechat/view/keys.form.html index edc774c91..6a9bf1cd4 100644 --- a/application/wechat/view/keys.form.html +++ b/application/wechat/view/keys.form.html @@ -33,15 +33,15 @@
{if !isset($vo.keys) or ($vo.keys neq 'default' and $vo.keys neq 'subscribe')}
- +
- +
{else}
- +
{if !isset($vo.status) or $vo.status neq 0} @@ -86,11 +86,11 @@ {/if} - {if isset($vo.type) and $vo.type eq 'voice'} - - {else} - - {/if} + + + + + {if isset($vo.type) and $vo.type eq 'music'}