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
a083421d
...
a083421d7ee320acefdc9106d1fc179d1f3f014c
authored
2022-07-20 10:18:37 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
77a3d95a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
app/Services/IssueService.php
app/Services/IssueService.php
View file @
a083421
...
...
@@ -40,11 +40,12 @@ class IssueService extends Service
'json'
=>
$data
,
]);
$respArr
=
json_decode
(
$response
->
getBody
()
->
getContents
(),
true
);
Log
::
info
(
__METHOD__
.
':请求返回体'
,
[
'respArr'
=>
$respArr
,
'data'
=>
$data
,
'uri'
=>
$client
->
post
(
$this
->
request
->
getRequestUri
())]);
$respArr
[
'msg'
]
=
$respArr
[
'message'
];
unset
(
$respArr
[
'message'
]);
Log
::
info
(
__METHOD__
.
':请求返回体'
,
[
'respArr'
=>
$respArr
,
'data'
=>
$data
,
'uri'
=>
$client
->
post
(
$this
->
request
->
getRequestUri
())]);
return
response
()
->
json
(
$respArr
,
200
);
}
catch
(
\Throwable
$throwable
)
{
return
Response
::
error
(
ErrorCode
::
SERVER_ERROR
,
$throwable
->
getMessage
());
...
...
Please
register
or
sign in
to post a comment