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
5aca29cf
...
5aca29cfc446f19dd1c79eb3225b9e938ead4333
authored
2021-07-02 18:43:38 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
310b1500
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
app/Http/Middleware/AuthIdentifier.php
app/Http/Middleware/AuthIdentifier.php
View file @
5aca29c
...
...
@@ -38,17 +38,19 @@ class AuthIdentifier
$identifier
=
env
(
'identifier'
);
}
Log
::
info
(
__METHOD__
.
'解析前:'
,
$identifier
);
Log
::
info
(
__METHOD__
.
'解析前:'
,
[
'identifier'
=>
$identifier
]
);
!
empty
(
$identifier
)
&&
$identifier
=
Identifier
::
resolve
(
$identifier
);
Log
::
info
(
__METHOD__
.
'解析后'
,
$identifier
);
Log
::
info
(
__METHOD__
.
'解析后'
,
[
'identifier'
=>
$identifier
]
);
if
(
empty
(
$identifier
))
return
Response
::
error
(
ErrorCode
::
IDENTIFIER_FAIL
);
$identifier
=
json_decode
(
$identifier
);
print_r
(
$identifier
);
//通过身份证查询id
$stakeholder_ids
=
Stakeholder
::
stakeholderIds
(
$identifier
);
if
(
empty
(
$stakeholder_ids
))
return
Response
::
error
(
ErrorCode
::
MATCH_IDENTIFIER_FAIL
);
...
...
Please
register
or
sign in
to post a comment