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
4301232c
authored
Dec 23, 2025
by
gongyang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
提交代码
parent
00395118
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
app/Logic/SystemNoticeLogic.php
app/Logic/SystemNoticeLogic.php
View file @
4301232c
...
@@ -422,6 +422,7 @@ class SystemNoticeLogic
...
@@ -422,6 +422,7 @@ class SystemNoticeLogic
$time
=
time
();
$time
=
time
();
$field
=
[
'info'
,
'type'
,
'show_status'
,
'system_id'
,
'title'
];
$field
=
[
'info'
,
'type'
,
'show_status'
,
'system_id'
,
'title'
];
$data
=
[];
$data
=
[];
$user
=
app
(
'request'
)
->
user
;
foreach
(
$field
as
$value
){
foreach
(
$field
as
$value
){
if
(
isset
(
$requestData
[
$value
])){
if
(
isset
(
$requestData
[
$value
])){
$data
[
$value
]
=
$requestData
[
$value
];
$data
[
$value
]
=
$requestData
[
$value
];
...
@@ -429,6 +430,8 @@ class SystemNoticeLogic
...
@@ -429,6 +430,8 @@ class SystemNoticeLogic
}
}
if
(
empty
(
$id
)){
if
(
empty
(
$id
)){
$data
[
'create_name'
]
=
$user
->
name
;
$data
[
'create_id'
]
=
$user
->
userId
;
$data
[
'create_time'
]
=
$time
;
$data
[
'create_time'
]
=
$time
;
$model
->
insertGetId
(
$data
);
$model
->
insertGetId
(
$data
);
}
else
{
}
else
{
...
...
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