mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]微信关键字管理
This commit is contained in:
parent
b22b97f860
commit
315c2da938
@ -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': /* 图文消息 */
|
||||
|
@ -33,15 +33,15 @@
|
||||
<div>
|
||||
{if !isset($vo.keys) or ($vo.keys neq 'default' and $vo.keys neq 'subscribe')}
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label layui-form-label">关 键 字</label>
|
||||
<label class="col-md-2 control-label layui-form-label ">关 键 字</label>
|
||||
<div class="col-md-9">
|
||||
<input required="required" title='请输入关键字' maxlength='20' name='keys'
|
||||
value='{$vo.keys|default=""}' class="layui-input">
|
||||
<input required="required" title='请输入关键字' maxlength='20' name='keys' class="layui-input"
|
||||
value='{$vo.keys|default=""}'>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label layui-form-label">规则状态</label>
|
||||
<label class="col-md-2 control-label layui-form-label label-required">规则状态</label>
|
||||
<div class="col-md-9">
|
||||
<div class="mt-radio-inline" style='padding-bottom:0'>
|
||||
{if !isset($vo.status) or $vo.status neq 0}
|
||||
@ -86,11 +86,11 @@
|
||||
<option value='image'>图片</option>
|
||||
{/if}
|
||||
|
||||
{if isset($vo.type) and $vo.type eq 'voice'}
|
||||
<option value='voice' selected>语音</option>
|
||||
{else}
|
||||
<option value='voice'>语音</option>
|
||||
{/if}
|
||||
<!--{if isset($vo.type) and $vo.type eq 'voice'}-->
|
||||
<!--<option value='voice' selected>语音</option>-->
|
||||
<!--{else}-->
|
||||
<!--<option value='voice'>语音</option>-->
|
||||
<!--{/if}-->
|
||||
|
||||
{if isset($vo.type) and $vo.type eq 'music'}
|
||||
<option value='music' selected>音乐</option>
|
||||
|
Loading…
x
Reference in New Issue
Block a user