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
e1a8415d
...
e1a8415d462f28019fd4001c9fa7a47f0981ec9f
authored
2022-06-08 15:52:12 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'release' of gitlab.hikoon.com:zhaocong/musician-api.hikoon.com into release
2 parents
f5fe3ff7
2ef89a83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
app/Http/Controllers/Release/BaseController.php
app/Http/Controllers/Release/BaseController.php
View file @
e1a8415
...
...
@@ -104,11 +104,6 @@ class BaseController extends Controller
$respArr
[
'message'
]
??
'操作失败'
,
$respArr
[
'data'
]
??
[]
];
// if (0 !== (int)$respArr['code']) {
// return Response::error(-1,$respArr['message'] ?? '操作失败');
// } else {
// return Response::success($respArr['data']);
// }
}
catch
(
\Exception
$e
)
{
Log
::
channel
(
'api'
)
->
error
(
__METHOD__
,
[
'msg'
=>
$e
->
getMessage
()]);
return
[
-
1
,
'接口请求失败'
,[]];
...
...
@@ -138,6 +133,7 @@ class BaseController extends Controller
$params
.=
$k
.
$v
;
}
}
Log
::
channel
(
'api'
)
->
info
(
$params
);
return
strtoupper
(
md5
(
$this
->
appSecret
.
$params
.
$this
->
appSecret
));
}
...
...
@@ -153,7 +149,13 @@ class BaseController extends Controller
// ksort($v);
$array
[
$k
]
=
$this
->
handleSubArrayNumber
(
$v
);
}
else
{
$array
[
$k
]
=
$v
;
$array
=
array_filter
(
$array
,
function
(
$item
)
{
if
(
$item
===
''
||
$item
===
null
)
{
return
false
;
}
else
{
return
true
;
}
});
}
}
return
$array
;
...
...
Please
register
or
sign in
to post a comment