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
533706cb
...
533706cb95d80136924d57c062827290ecd3e325
authored
2022-09-16 17:42:52 +0800
by
wei.feng
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
..
2 parents
71f7c907
0641e5a6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
app/Http/Controllers/OpenApi/SongController.php
app/Services/IssueService.php
app/Http/Controllers/OpenApi/SongController.php
View file @
533706c
...
...
@@ -103,7 +103,7 @@ class SongController extends Controller
public
function
coverFiles
(
$song_files
)
:
array
{
$files_need
=
[
'mp3_url'
,
'accompany_mp3_url'
,
'cover_url'
,
'wav_url'
,
'accompany_wav_url'
];
$files_need
=
[
'mp3_url'
,
'accompany_mp3_url'
,
'
lyric_url'
,
'
cover_url'
,
'wav_url'
,
'accompany_wav_url'
];
$files_arr
=
[];
foreach
(
$song_files
as
$file
)
{
switch
(
$file
[
'type'
])
{
...
...
@@ -113,6 +113,9 @@ class SongController extends Controller
case
2
:
$files_arr
[
'accompany_mp3_url'
]
=
$file
[
'url'
];
break
;
case
3
:
$files_arr
[
'lyric_url'
]
=
$file
[
'url'
];
break
;
case
4
:
$files_arr
[
'cover_url'
]
=
$file
[
'url'
];
break
;
...
...
app/Services/IssueService.php
View file @
533706c
...
...
@@ -26,6 +26,8 @@ class IssueService extends Service
'timeout'
=>
3.0
,
]);
$token
=
uniqid
();
try
{
$params
[
'data'
]
=
$this
->
request
->
all
();
...
...
@@ -35,6 +37,8 @@ class IssueService extends Service
'stakeholder_ids'
=>
$this
->
stakeholder_ids
,
];
Log
::
info
(
__METHOD__
.
':请求参数'
,
[
'params'
=>
$params
,
'token'
=>
$token
,
'uri'
=>
$client
->
post
(
$this
->
request
->
getRequestUri
())]);
$data
=
[
'params'
=>
AesEncrypt
::
encrypt
(
json_encode
(
$params
))];
$response
=
$client
->
post
(
$this
->
request
->
getRequestUri
(),
[
'json'
=>
$data
,
...
...
@@ -44,7 +48,7 @@ class IssueService extends Service
$respArr
[
'msg'
]
=
$respArr
[
'message'
];
unset
(
$respArr
[
'message'
]);
Log
::
info
(
__METHOD__
.
':请求返回体'
,
[
'respArr'
=>
$respArr
,
'data'
=>
$data
,
'uri'
=>
$client
->
post
(
$this
->
request
->
getRequestUri
())]);
Log
::
info
(
__METHOD__
.
':请求返回体'
,
[
'respArr'
=>
$respArr
,
'token'
=>
$token
,
'data'
=>
$data
,
'uri'
=>
$client
->
post
(
$this
->
request
->
getRequestUri
())]);
return
response
()
->
json
(
$respArr
,
200
);
}
catch
(
\Throwable
$throwable
)
{
...
...
Please
register
or
sign in
to post a comment