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
f5be2fbc
authored
Dec 23, 2025
by
gongyang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
提交代码
parent
5be4cb5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
app/Http/Controllers/NoticeController.php
app/Http/routes.php
app/Http/Controllers/NoticeController.php
View file @
f5be2fbc
...
@@ -35,9 +35,9 @@ class NoticeController extends Controller
...
@@ -35,9 +35,9 @@ class NoticeController extends Controller
$data
=
$request
->
all
();
$data
=
$request
->
all
();
try
{
try
{
$returnData
=
(
new
SystemNoticeLogic
())
->
businessNoticeList
(
$data
);
$returnData
=
(
new
SystemNoticeLogic
())
->
businessNoticeList
(
$data
);
$this
->
codeExport
(
0
,
'公告获取成功'
,
$returnData
);
return
$this
->
codeExport
(
0
,
'公告获取成功'
,
$returnData
);
}
catch
(
\Exception
$e
){
}
catch
(
\Exception
$e
){
$this
->
codeExport
(
1
,
$e
->
getMessage
());
return
$this
->
codeExport
(
1
,
$e
->
getMessage
());
}
}
}
}
...
@@ -46,9 +46,9 @@ class NoticeController extends Controller
...
@@ -46,9 +46,9 @@ class NoticeController extends Controller
$data
=
$request
->
all
();
$data
=
$request
->
all
();
try
{
try
{
$returnData
=
(
new
SystemNoticeLogic
())
->
saveBusinessNotice
(
$data
);
$returnData
=
(
new
SystemNoticeLogic
())
->
saveBusinessNotice
(
$data
);
$this
->
codeExport
(
0
,
'保存成功'
,
$returnData
);
return
$this
->
codeExport
(
0
,
'保存成功'
,
$returnData
);
}
catch
(
\Exception
$e
){
}
catch
(
\Exception
$e
){
$this
->
codeExport
(
1
,
$e
->
getMessage
());
return
$this
->
codeExport
(
1
,
$e
->
getMessage
());
}
}
}
}
...
...
app/Http/routes.php
View file @
f5be2fbc
...
@@ -85,7 +85,7 @@ Route::get ('/notice/getNotice','NoticeController@getNotice');
...
@@ -85,7 +85,7 @@ Route::get ('/notice/getNotice','NoticeController@getNotice');
Route
::
get
(
'/sync/businessNoticeList'
,
'NoticeController@businessNoticeList'
);
Route
::
get
(
'/sync/businessNoticeList'
,
'NoticeController@businessNoticeList'
);
Route
::
ge
t
(
'/sync/saveBusinessNotice'
,
'NoticeController@saveBusinessNotice'
);
Route
::
pos
t
(
'/sync/saveBusinessNotice'
,
'NoticeController@saveBusinessNotice'
);
...
...
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