Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
8c5d3c7b
...
8c5d3c7b898209b0efad597bcddb1db8fe07afd6
authored
2023-01-05 10:30:51 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加日志
1 parent
842c1038
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
app/Http/Middleware/AuthIdentifier.php
app/Http/Middleware/AuthIdentifier.php
View file @
8c5d3c7
...
...
@@ -46,7 +46,11 @@ class AuthIdentifier
$identifier
=
env
(
'identifier'
);
}
Log
::
info
(
__METHOD__
,
[
'ip'
=>
$request
->
ip
()]);
Log
::
info
(
__METHOD__
,
[
'ip'
=>
$request
->
ip
(),
'white_list'
=>
explode
(
','
,
config
(
'api.inside'
)[
'ip'
]),
'identifier'
=>
$identifier
,
]);
if
(
empty
(
$identifier
)
&&
(
in_array
(
$request
->
ip
(),
explode
(
','
,
config
(
'api.inside'
)[
'ip'
]))))
{
goto
AUTH
;
...
...
Please
register
or
sign in
to post a comment