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
7bfc92f3
authored
Dec 23, 2025
by
gongyang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
提交代码
parent
f91e80ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
app/Logic/SystemNoticeLogic.php
app/Logic/SystemNoticeLogic.php
View file @
7bfc92f3
...
@@ -460,6 +460,11 @@ class SystemNoticeLogic
...
@@ -460,6 +460,11 @@ class SystemNoticeLogic
public
function
topBusinessNotice
(
$requestData
)
public
function
topBusinessNotice
(
$requestData
)
{
{
$idArr
=
explode
(
','
,
$requestData
[
'business_notice_id'
]);
$idArr
=
explode
(
','
,
$requestData
[
'business_notice_id'
]);
if
(
$requestData
[
'top_status'
]){
if
(
BusinessNoticeModel
::
where
(
'top_status'
,
1
)
->
count
(
'business_notice_id'
)
>=
5
){
throw
new
\Exception
(
'当前全系统置顶已满5条,暂时无法置顶新公告,请先取消一条现有置顶 !'
);
}
}
(
new
BusinessNoticeModel
())
->
where
(
'business_notice_id'
,
$idArr
)
->
update
([
'top_status'
=>
$requestData
[
'top_status'
]]);
(
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