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
b42e32a5
...
b42e32a50458b33dcb76c0da0e5687b0d12f5c41
authored
2022-06-02 12:59:53 +0800
by
mengfan.xie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
release
1 parent
4f7e85f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
app/Http/Controllers/Release/BaseController.php
app/Http/Controllers/Release/BaseController.php
View file @
b42e32a
...
...
@@ -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
,
'接口请求失败'
,[]];
...
...
@@ -153,6 +148,10 @@ class BaseController extends Controller
// ksort($v);
$array
[
$k
]
=
$this
->
handleSubArrayNumber
(
$v
);
}
else
{
if
(
$v
===
''
)
{
unset
(
$array
[
$k
]);
continue
;
}
$array
[
$k
]
=
$v
;
}
}
...
...
Please
register
or
sign in
to post a comment