{template 'common/header'} {if in_array($m, $sysmods)}
自动回复

- 关键字自动回复
- 非文字自动回复
- 首次访问自动回复
- 默认回复
- 常用服务
- 自定义接口回复

{else}
入口设置

{if !empty($_W['current_module']['isrulefields']) &&!empty($_W['account']) && in_array($_W['account']['type'], array(ACCOUNT_TYPE_OFFCIAL_NORMAL, ACCOUNT_TYPE_OFFCIAL_AUTH))}
- 关键字链接入口
{/if} {if !empty($frames['section']['platform_module_common']['menu']['platform_module_cover'])}
- 封面链接入口
{/if}

{/if} {if $m == 'keyword' || $m == 'userapi' || !in_array($m, $sysmods)}
+添加{if $m == 'userapi'}自定义接口{else}关键字{/if}回复 {if in_array($m, $sysmods) && $m != 'userapi'}+添加应用关键字{/if}
{if in_array($m, $sysmods) && $m != 'userapi'}
全部 回复图文 回复模块 回复语音 回复文字 回复音乐 回复图片 回复视频
{/if}
{if !empty($replies)} {loop $replies $row}

{if !empty($row['name'])}规则名：{$row['name']}{/if} {if $row['displayorder'] > 0} {if $row['displayorder'] == '255'} 置顶 {else} 优先级 {$row['displayorder']} {/if} {/if} | 是否开启 | 操作
--- | --- | ---
{if !in_array($row['module'], $sysmods)} | {else} | {/if} 关 键 字 {loop $row['keywords'] $kw} {$kw['content']} {if $kw['type'] == 4}优先级在{$row['displayorder']}之下直接生效{/if} {/loop} 回复内容 {if $m == 'userapi'} 自定义 {elseif in_array($row['module'], $sysmods)} 共{$row['allreply']['sum']}条（{if $row['allreply']['basic'] > 0}{$row['allreply']['basic']}条文字 {/if}{if $row['allreply']['images'] > 0}{$row['allreply']['images']}条图片 {/if}{if $row['allreply']['news'] > 0}{$row['allreply']['news']}条图文 {/if}{if $row['allreply']['music'] > 0}{$row['allreply']['music']}条音乐 {/if}{if $row['allreply']['voice'] > 0}{$row['allreply']['voice']}条语音 {/if}{if $row['allreply']['video'] > 0}{$row['allreply']['video']}条视频 {/if}{if $row['allreply']['wxcard'] > 0}{$row['allreply']['wxcard']}条卡券{/if}） {else} {php echo cutstr($row['module_info']['title'], 10);}应用 {/if} |  | {if in_array($row['module'], $sysmods)} 编辑 {else} 编辑 {/if} 删除 {loop $entries['rule'] $ext_menu} {$ext_menu['title']} {/loop}

{/loop}
{$pager}
{else}

暂无数据

{/if}
{elseif $m == 'special'}

类型 | 关键字/模块 | 状态 | 操作
--- | --- | --- | ---
{loop $mtypes $name $title}
{$title} | {if !empty($setting[$name]['type'])} {if $setting[$name]['type'] == 'keyword'}{$setting[$name]['keyword']}{else}{$module[$setting[$name]['module']]['title']}{/if} {else} {if !empty($setting[$name]['keyword'])}{$setting[$name]['keyword']}{else}{$module[$setting[$name]['module']]['title']}{/if} {/if} |  | 编辑
{/loop}

{elseif $m == 'welcome'}
用户关注公众号时，发送的欢迎信息。
{php echo module_build_form('core', $rule_keyword_id, array('keyword' => false))}
{elseif $m == 'default'}
当系统不知道该如何回复粉丝的消息时，默认发送的内容。
{php echo module_build_form('core', $rule_keyword_id, array('keyword' => false))}
{elseif $m == 'service'}

服务名称 | 功能说明 | 状态
--- | --- | ---
{{ api.name }} |  |
暂无数据

{/if} {template 'common/footer'}