Commit 344594b9 by 孙龙

企业微信

parent 572c0a1a
......@@ -395,7 +395,7 @@ class MessageApiController extends Controller
}
if (strpos($data['channels'], '5') !== false) {
if (empty($data['ding_content'])) {
$this->Export(11020, '请填写钉钉消息内容');
$this->Export(11020, '请填写企业微信消息内容');
}
$chn_tpl_model_ding = [];
$chn_tpl_model_ding['channel_tpl_id'] = $data['ding_channel_tpl_id'];
......
......@@ -217,7 +217,7 @@ class MessageController extends Controller
$item = objectToArray($item);
$item['cls_name'] = !empty($item['parent_name'])?$item['parent_name']:'' ;
$item['sub_cls_name'] = !empty($item['name'])?$item['name']:'' ;
$item['show_channels_str'] = $this->changeNumberStrToChineseStr(['站内信','短信','邮箱','微信通知','钉钉消息'],$item['channels']);
$item['show_channels_str'] = $this->changeNumberStrToChineseStr(['站内信','短信','邮箱','微信通知','企业微信消息'],$item['channels']);
}
unset($item);
return json_encode(['code'=>0,'count'=>$info['total'],'msg'=>'success','data'=>$info['data']]);
......
......@@ -48,7 +48,7 @@ return [
2 => '短信',
3 => '邮件',
4 => '微信通知',
5 => '钉钉消息'
5 => '企业微信消息'
],
'msg_type' => [
......
......@@ -153,7 +153,7 @@
<input type="checkbox" name="chk-channels" id="chk-channels-wechat-notify" title="微信通知" lay-skin="primary" value="4" @if(in_array('4',$tpl_channels_arr)) checked checked @endif/>
</div>
<div class="layui-input-inline" style="width: 80px">
<input type="checkbox" name="chk-channels" id="chk-channels-ding" title="钉钉通知" lay-skin="primary" value="5" @if(in_array('5',$tpl_channels_arr)) checked checked @endif/>
<input type="checkbox" name="chk-channels" id="chk-channels-ding" title="企业微信通知" lay-skin="primary" value="5" @if(in_array('5',$tpl_channels_arr)) checked checked @endif/>
</div>
</div>
......@@ -207,7 +207,7 @@
<li role="presentation">
<a href="#ding" aria-controls="ding" role="tab" data-toggle="tab">
<i class="layui-icon">&#xe63a;</i>
<span>钉钉通知</span>
<span>企业微信通知</span>
</a>
</li>
</ul>
......@@ -325,9 +325,9 @@
<div role="tabpanel" class="tab-pane fade" id="ding">
<input type="hidden" id="ding-chn-tpl-id" value="{{ $ding_chn_tpl_id }}">
<div class="col-sm-10" style="margin-top: 40px">
<label class="col-sm-2 control-label"><span style="color: red">*</span> 钉钉消息内容:</label>
<label class="col-sm-2 control-label"><span style="color: red">*</span> 企业微信消息内容:</label>
<div class="col-sm-10">
<textarea rows="2" cols="10" id="ding-tpl-content" class="form-control" placeholder="请输入钉钉消息内容">@if(!empty($info->channel_tpls['5'])) {{ $info->channel_tpls['5']->content }} @endif</textarea>
<textarea rows="2" cols="10" id="ding-tpl-content" class="form-control" placeholder="请输入企业微信消息内容">@if(!empty($info->channel_tpls['5'])) {{ $info->channel_tpls['5']->content }} @endif</textarea>
<label id="ding-content-length"></label>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment