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
310b1500
...
310b1500d945b4b0f1fee713a073f6ac7738ce35
authored
2021-07-02 18:37:40 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
bd3760f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
app/Http/Middleware/AuthIdentifier.php
app/Http/Middleware/AuthIdentifier.php
View file @
310b150
...
...
@@ -8,6 +8,7 @@ use App\Helper\Response;
use
App\Models\Legal\Stakeholder
;
use
Closure
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Log
;
/**
* Class AuthIdentifier
...
...
@@ -37,8 +38,13 @@ class AuthIdentifier
$identifier
=
env
(
'identifier'
);
}
Log
::
info
(
__METHOD__
.
'解析前:'
,
$identifier
);
!
empty
(
$identifier
)
&&
$identifier
=
Identifier
::
resolve
(
$identifier
);
Log
::
info
(
__METHOD__
.
'解析后'
,
$identifier
);
if
(
empty
(
$identifier
))
return
Response
::
error
(
ErrorCode
::
IDENTIFIER_FAIL
);
$identifier
=
json_decode
(
$identifier
);
...
...
Please
register
or
sign in
to post a comment