Commit 533706cb 533706cb95d80136924d57c062827290ecd3e325 by wei.feng

..

2 parents 71f7c907 0641e5a6
......@@ -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;
......
......@@ -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) {
......