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
309aee00
authored
Dec 23, 2025
by
gongyang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
提交代码
parent
f7d5ebe1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
app/Http/Controllers/NoticeController.php
app/Http/Controllers/NoticeController.php
View file @
309aee00
...
@@ -33,6 +33,19 @@ class NoticeController extends Controller
...
@@ -33,6 +33,19 @@ class NoticeController extends Controller
public
function
businessNoticeList
(
Request
$request
)
public
function
businessNoticeList
(
Request
$request
)
{
{
$origin
=
isset
(
$_SERVER
[
'HTTP_ORIGIN'
])
?
$_SERVER
[
'HTTP_ORIGIN'
]
:
''
;
$origin_arr
=
explode
(
'//'
,
$origin
);
$allow_origin
=
[
'order2.xiaokang.liexinlocal.com'
];
if
(
in_array
(
$origin_arr
[
'1'
],
$allow_origin
)){
header
(
'Access-Control-Allow-Origin:'
.
$origin
);
header
(
'Access-Control-Allow-Credentials:true'
);
header
(
'Access-Control-Allow-Methods:POST'
);
// header('Access-Control-Allow-Headers:x-requested-with,content-type');
header
(
'Access-Control-Allow-Headers:x-requested-with,content-type,hunt_types'
);
}
header
(
"Content-type: text/html; charset=utf-8"
);
$data
=
$request
->
all
();
$data
=
$request
->
all
();
try
{
try
{
$data
[
'show_status'
]
=
1
;
$data
[
'show_status'
]
=
1
;
...
...
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