|
@@ -314,9 +314,8 @@ class DeepSeekService
|
|
|
// 通知火山生成音频
|
|
|
$client = new Client(['timeout' => 300, 'verify' => false]);
|
|
|
// 根据ID通过API通知合成音频
|
|
|
- // $result = $client->get("http://47.240.171.155:5000/api/chapterTask?taskId={$audio_id}");
|
|
|
- $audio_id = getProp($chapter_audio, 'id');
|
|
|
- $result = $client->get("http://122.9.129.83:5000/api/chapterTask?taskId={$audio_id}");
|
|
|
+ // $result = $client->get("http://47.240.171.155:5000/api/chapterTask?taskId={$id}");
|
|
|
+ $result = $client->get("http://122.9.129.83:5000/api/chapterTask?taskId={$id}");
|
|
|
$response = $result->getBody()->getContents();
|
|
|
$response_arr = json_decode($response, true);
|
|
|
if (!isset($response_arr['code']) || (int)$response_arr['code'] !== 0) {
|