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
c4cf24d1
authored
Dec 22, 2025
by
gongyang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
提交代码
parent
97abbc92
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
app/Logic/SystemNoticeLogic.php
app/Logic/SystemNoticeLogic.php
View file @
c4cf24d1
...
@@ -17,6 +17,7 @@ use App\Model\SystemUpdateModel;
...
@@ -17,6 +17,7 @@ use App\Model\SystemUpdateModel;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\DB
;
use
Mail
;
use
Mail
;
use
RedisDB
;
use
RedisDB
;
use
Symfony\Component\Yaml\Tests\B
;
//TODO 上线之后去除注释这个notice ,5。0版本的缺陷 https://blog.csdn.net/weixin_44251615/article/details/93710829
//TODO 上线之后去除注释这个notice ,5。0版本的缺陷 https://blog.csdn.net/weixin_44251615/article/details/93710829
ini_set
(
"error_reporting"
,
"E_ALL & ~E_NOTICE"
);
ini_set
(
"error_reporting"
,
"E_ALL & ~E_NOTICE"
);
...
@@ -416,6 +417,22 @@ class SystemNoticeLogic
...
@@ -416,6 +417,22 @@ class SystemNoticeLogic
public
function
saveBusinessNotice
(
$requestData
)
public
function
saveBusinessNotice
(
$requestData
)
{
{
$id
=
$requestData
[
'business_notice_id'
]
??
0
;
$model
=
new
BusinessNoticeModel
();
$time
=
time
();
$field
=
[
'info'
,
'type'
,
'show_status'
,
'system_id'
];
$data
=
[];
foreach
(
$field
as
$value
){
$data
[
$value
]
=
$requestData
[
$value
];
}
if
(
empty
(
$id
)){
$data
[
'create_time'
]
=
$time
;
$model
->
insertGetId
(
$data
);
}
else
{
$data
[
'update_time'
]
=
$time
;
$model
->
where
(
'business_notice_id'
,
$id
)
->
update
(
$data
);
}
return
[];
return
[];
}
}
...
@@ -423,16 +440,22 @@ class SystemNoticeLogic
...
@@ -423,16 +440,22 @@ class SystemNoticeLogic
public
function
delBusinessNotice
(
$requestData
)
public
function
delBusinessNotice
(
$requestData
)
{
{
$idArr
=
explode
(
','
,
$requestData
[
'business_notice_id'
]);
(
new
BusinessNoticeModel
())
->
where
(
'business_notice_id'
,
$idArr
)
->
delete
();
return
[];
return
[];
}
}
public
function
showBusinessNotice
(
$requestData
)
public
function
showBusinessNotice
(
$requestData
)
{
{
$idArr
=
explode
(
','
,
$requestData
[
'business_notice_id'
]);
(
new
BusinessNoticeModel
())
->
where
(
'business_notice_id'
,
$idArr
)
->
update
([
'show_status'
=>
$requestData
[
'show_status'
]]);
return
[];
return
[];
}
}
public
function
topBusinessNotice
(
$requestData
)
public
function
topBusinessNotice
(
$requestData
)
{
{
$idArr
=
explode
(
','
,
$requestData
[
'business_notice_id'
]);
(
new
BusinessNoticeModel
())
->
where
(
'business_notice_id'
,
$idArr
)
->
update
([
'top_status'
=>
$requestData
[
'top_status'
]]);
return
[];
return
[];
}
}
...
...
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