Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
李洋
/
消息系统
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
344594b9
authored
Mar 14, 2025
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
企业微信
parent
572c0a1a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
app/Http/Controllers/MessageApiController.php
app/Http/Controllers/MessageController.php
config/msgconfig.php
resources/views/message/addtemplate.blade.php
app/Http/Controllers/MessageApiController.php
View file @
344594b9
...
...
@@ -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'
];
...
...
app/Http/Controllers/MessageController.php
View file @
344594b9
...
...
@@ -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'
]]);
...
...
config/msgconfig.php
View file @
344594b9
...
...
@@ -48,7 +48,7 @@ return [
2
=>
'短信'
,
3
=>
'邮件'
,
4
=>
'微信通知'
,
5
=>
'
钉钉
消息'
5
=>
'
企业微信
消息'
],
'msg_type'
=>
[
...
...
resources/views/message/addtemplate.blade.php
View file @
344594b9
...
...
@@ -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"
>

</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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment