..
Showing
2 changed files
with
9 additions
and
2 deletions
... | @@ -103,7 +103,7 @@ class SongController extends Controller | ... | @@ -103,7 +103,7 @@ class SongController extends Controller |
103 | 103 | ||
104 | public function coverFiles($song_files): array | 104 | public function coverFiles($song_files): array |
105 | { | 105 | { |
106 | $files_need = ['mp3_url', 'accompany_mp3_url', 'cover_url', 'wav_url', 'accompany_wav_url']; | 106 | $files_need = ['mp3_url', 'accompany_mp3_url', 'lyric_url', 'cover_url', 'wav_url', 'accompany_wav_url']; |
107 | $files_arr = []; | 107 | $files_arr = []; |
108 | foreach ($song_files as $file) { | 108 | foreach ($song_files as $file) { |
109 | switch ($file['type']) { | 109 | switch ($file['type']) { |
... | @@ -113,6 +113,9 @@ class SongController extends Controller | ... | @@ -113,6 +113,9 @@ class SongController extends Controller |
113 | case 2: | 113 | case 2: |
114 | $files_arr['accompany_mp3_url'] = $file['url']; | 114 | $files_arr['accompany_mp3_url'] = $file['url']; |
115 | break; | 115 | break; |
116 | case 3: | ||
117 | $files_arr['lyric_url'] = $file['url']; | ||
118 | break; | ||
116 | case 4: | 119 | case 4: |
117 | $files_arr['cover_url'] = $file['url']; | 120 | $files_arr['cover_url'] = $file['url']; |
118 | break; | 121 | break; | ... | ... |
... | @@ -26,6 +26,8 @@ class IssueService extends Service | ... | @@ -26,6 +26,8 @@ class IssueService extends Service |
26 | 'timeout' => 3.0, | 26 | 'timeout' => 3.0, |
27 | ]); | 27 | ]); |
28 | 28 | ||
29 | $token = uniqid(); | ||
30 | |||
29 | try { | 31 | try { |
30 | 32 | ||
31 | $params['data'] = $this->request->all(); | 33 | $params['data'] = $this->request->all(); |
... | @@ -35,6 +37,8 @@ class IssueService extends Service | ... | @@ -35,6 +37,8 @@ class IssueService extends Service |
35 | 'stakeholder_ids' => $this->stakeholder_ids, | 37 | 'stakeholder_ids' => $this->stakeholder_ids, |
36 | ]; | 38 | ]; |
37 | 39 | ||
40 | Log::info(__METHOD__.':请求参数', ['params'=>$params, 'token'=>$token, 'uri'=>$client->post($this->request->getRequestUri())]); | ||
41 | |||
38 | $data = ['params' => AesEncrypt::encrypt(json_encode($params))]; | 42 | $data = ['params' => AesEncrypt::encrypt(json_encode($params))]; |
39 | $response = $client->post($this->request->getRequestUri(), [ | 43 | $response = $client->post($this->request->getRequestUri(), [ |
40 | 'json' => $data, | 44 | 'json' => $data, |
... | @@ -44,7 +48,7 @@ class IssueService extends Service | ... | @@ -44,7 +48,7 @@ class IssueService extends Service |
44 | $respArr['msg'] = $respArr['message']; | 48 | $respArr['msg'] = $respArr['message']; |
45 | unset($respArr['message']); | 49 | unset($respArr['message']); |
46 | 50 | ||
47 | Log::info(__METHOD__.':请求返回体', ['respArr'=>$respArr, 'data'=>$data, 'uri'=>$client->post($this->request->getRequestUri())]); | 51 | Log::info(__METHOD__.':请求返回体', ['respArr'=>$respArr, 'token'=>$token, 'data'=>$data, 'uri'=>$client->post($this->request->getRequestUri())]); |
48 | 52 | ||
49 | return response()->json($respArr, 200); | 53 | return response()->json($respArr, 200); |
50 | } catch (\Throwable $throwable) { | 54 | } catch (\Throwable $throwable) { | ... | ... |
-
Please register or sign in to post a comment