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
b5b05523
...
b5b055232c416b01044efcd7138560517ddce201
authored
2022-11-26 11:24:34 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
1d7a5b43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
app/Http/Controllers/Release/BaseController.php
app/Http/Controllers/Release/BaseController.php
View file @
b5b0552
...
...
@@ -68,8 +68,6 @@ class BaseController extends Controller
{
if
(
!
$accessToken
=
Cache
::
get
(
CacheKeyTools
::
tmeAccessToken
()))
{
$accessToken
=
$this
->
getToken
();}
$headers
[
'appId'
]
=
$this
->
appId
;
$headers
[
'accessToken'
]
=
$accessToken
;
$headers
[
'timestamp'
]
=
(
string
)
date
(
'YmdHis'
);
...
...
@@ -163,11 +161,14 @@ class BaseController extends Controller
ksort
(
$common_params
);
$params
=
''
;
foreach
(
$common_params
as
$k
=>
$v
)
{
if
(
''
===
$v
||
null
===
$v
||
[]
===
$v
)
{
continue
;
}
if
(
is_array
(
$v
))
{
$params
.=
$k
.
json_encode
(
$this
->
handleSubArrayNumber
(
$v
),
JSON_UNESCAPED_UNICODE
|
JSON_UNESCAPED_SLASHES
);
}
else
{
...
...
@@ -177,8 +178,9 @@ class BaseController extends Controller
Log
::
channel
(
'api'
)
->
info
(
__METHOD__
.
':签名参数'
,
[
'common_params'
=>
$common_params
,
'appSecret'
=>
$this
->
appSecret
,
'
$
params'
=>
$params
,
'params'
=>
$params
,
'sign'
=>
strtoupper
(
md5
(
$this
->
appSecret
.
$params
.
$this
->
appSecret
)),
]);
...
...
Please
register
or
sign in
to post a comment