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
888e369a
authored
Feb 09, 2023
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
去除无效的注释
parent
c65cd324
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
app/Http/Controllers/MessageApiController.php
app/Logic/SystemNoticeLogic.php
app/Http/Controllers/MessageApiController.php
View file @
888e369a
...
@@ -79,7 +79,7 @@ class MessageApiController extends Controller
...
@@ -79,7 +79,7 @@ class MessageApiController extends Controller
//保存系统更新信息
//保存系统更新信息
private
function
saveSystemUpdate
(
$request
)
private
function
saveSystemUpdate
(
$request
)
{
{
$data
=
$request
->
only
([
'title'
,
'smbn_id'
,
'content'
]
);
$data
=
$request
->
all
(
);
try
{
try
{
(
new
SystemNoticeLogic
())
->
saveSystemUpdate
(
$data
);
(
new
SystemNoticeLogic
())
->
saveSystemUpdate
(
$data
);
$this
->
Export
(
0
,
'操作成功'
);
$this
->
Export
(
0
,
'操作成功'
);
...
...
app/Logic/SystemNoticeLogic.php
View file @
888e369a
...
@@ -82,6 +82,8 @@ class SystemNoticeLogic
...
@@ -82,6 +82,8 @@ class SystemNoticeLogic
$data
[
'update_time'
]
=
strtotime
(
$data
[
'update_time'
]);
$data
[
'update_time'
]
=
strtotime
(
$data
[
'update_time'
]);
$data
=
self
::
setSystemInfo
(
$data
);
$data
=
self
::
setSystemInfo
(
$data
);
unset
(
$data
[
'_url'
]);
$systemUpdateModel
=
(
new
SystemUpdateModel
());
$systemUpdateModel
=
(
new
SystemUpdateModel
());
$smueid
=
$data
[
'smue_id'
];
unset
(
$data
[
'smue_id'
]);
$smueid
=
$data
[
'smue_id'
];
unset
(
$data
[
'smue_id'
]);
...
@@ -102,6 +104,7 @@ class SystemNoticeLogic
...
@@ -102,6 +104,7 @@ class SystemNoticeLogic
$time
=
time
();
$time
=
time
();
$data
[
'preach_time'
]
=
strtotime
(
$data
[
'preach_time'
]);
$data
[
'preach_time'
]
=
strtotime
(
$data
[
'preach_time'
]);
unset
(
$data
[
'file'
]);
unset
(
$data
[
'file'
]);
unset
(
$data
[
'_url'
]);
$data
=
self
::
setSystemInfo
(
$data
);
$data
=
self
::
setSystemInfo
(
$data
);
$data
=
self
::
setDepartmentInfo
(
$data
);
$data
=
self
::
setDepartmentInfo
(
$data
);
...
@@ -124,6 +127,7 @@ class SystemNoticeLogic
...
@@ -124,6 +127,7 @@ class SystemNoticeLogic
{
{
$time
=
time
();
$time
=
time
();
unset
(
$data
[
'file'
]);
unset
(
$data
[
'file'
]);
unset
(
$data
[
'_url'
]);
$systemBulletinModel
=
(
new
SystemBulletinModel
());
$systemBulletinModel
=
(
new
SystemBulletinModel
());
$smbnid
=
$data
[
'smbn_id'
];
unset
(
$data
[
'smbn_id'
]);
$smbnid
=
$data
[
'smbn_id'
];
unset
(
$data
[
'smbn_id'
]);
//id没有值是新增,id有值是保存
//id没有值是新增,id有值是保存
...
...
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