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
dc1d138c
authored
Dec 05, 2022
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
新增通知系统-完成脚本修复
parent
9b0ada11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
app/Logic/SystemNoticeLogic.php
public/js/Message/systemUpdate.js
app/Logic/SystemNoticeLogic.php
View file @
dc1d138c
...
...
@@ -174,7 +174,7 @@ class SystemNoticeLogic
}
else
if
(
$data
[
'type'
]
==
'system_preach'
){
$modelObj
=
(
new
System
Update
Model
());
$modelObj
=
(
new
System
Preach
Model
());
$sendInfo
=
$modelObj
->
where
(
'smph_id'
,
$data
[
'id'
])
->
first
();
...
...
@@ -191,7 +191,7 @@ class SystemNoticeLogic
}
else
if
(
$data
[
'type'
]
==
'system_bulletin'
){
$modelObj
=
(
new
System
Update
Model
());
$modelObj
=
(
new
System
Bulletin
Model
());
$sendInfo
=
$modelObj
->
where
(
'smbn_id'
,
$data
[
'id'
])
->
first
();
...
...
@@ -222,13 +222,11 @@ class SystemNoticeLogic
if
(
$data
[
'type'
]
==
'system_update'
){
$modelObj
->
where
(
'smue_id'
,
$data
[
'id'
])
->
update
([
'update_time'
=>
$now
]);
$modelObj
->
where
(
'smue_id'
,
$data
[
'id'
])
->
increment
(
'bulletin_count'
,
$bulletinSendCount
);
$modelObj
->
where
(
'smue_id'
,
$data
[
'id'
])
->
increment
(
'
bulletin
_count'
,
$emailSendCount
);
$modelObj
->
where
(
'smue_id'
,
$data
[
'id'
])
->
increment
(
'
email
_count'
,
$emailSendCount
);
}
else
if
(
$data
[
'type'
]
==
'system_preach'
){
$modelObj
->
where
(
'smph_id'
,
$data
[
'id'
])
->
update
([
'update_time'
=>
$now
]);
}
else
if
(
$data
[
'type'
]
==
'system_bulletin'
){
$modelObj
->
where
(
'smbn_id'
,
$data
[
'id'
])
->
update
([
'update_time'
=>
$now
,
'is_send'
=>
'已发送'
]);
}
else
{
throw
new
\Exception
(
'暂无该种类型'
);
}
...
...
public/js/Message/systemUpdate.js
View file @
dc1d138c
...
...
@@ -43,7 +43,7 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate','laye
{
field
:
'product_user'
,
title
:
'产品负责人'
,
align
:
'center'
,
width
:
150
},
{
field
:
'code_user'
,
title
:
'技术负责人'
,
align
:
'center'
,
width
:
180
},
{
field
:
'test_user'
,
title
:
'测试负责人'
,
align
:
'center'
,
width
:
180
},
{
field
:
'
preach
_count'
,
title
:
'公告发送次数'
,
align
:
'center'
,
width
:
180
},
{
field
:
'
bulletin
_count'
,
title
:
'公告发送次数'
,
align
:
'center'
,
width
:
180
},
{
field
:
'email_count'
,
title
:
'邮件发送次数'
,
align
:
'center'
,
width
:
180
},
{
field
:
'active'
,
toolbar
:
'#active'
,
title
:
'操作'
,
align
:
'center'
,
width
:
150
,
fixed
:
'right'
}
]]
...
...
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