fixed
This commit is contained in:
@@ -69,6 +69,8 @@ class Reportty
|
||||
$chatobj->setBefore($content);
|
||||
|
||||
$chatobj->chat($question,$config,$answer_json_arr);
|
||||
//把返回的报告保存起来
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -38,17 +38,18 @@ class AudioRevertLogic extends BaseLogic
|
||||
//echo "音频上传成功,task_id: $taskId\n";
|
||||
//do {
|
||||
$progress = json_decode($client->getProgress($taskId)->getBody()->getContents(), true);
|
||||
Tools::log_to_write_txt(['进度'=>$progress]);
|
||||
|
||||
if ($progress['ok'] !== 0) {
|
||||
//echo "获取任务进度失败\n";
|
||||
$res_json = BaseWssApi::json_wss('error','获取任务进度失败');
|
||||
$res_json = BaseWssApi::json_wss('error','获取任务进度失败',$progress);
|
||||
Tools::log_to_write_txt($res_json);
|
||||
Gateway::sendToClient($client_id, $res_json);
|
||||
return;
|
||||
}
|
||||
|
||||
if ($progress['err_no'] !== 0) {
|
||||
$res_json = BaseWssApi::json_wss('error','获取任务进度失败');
|
||||
$res_json = BaseWssApi::json_wss('error','获取任务进度失败',$progress);
|
||||
Tools::log_to_write_txt($res_json);
|
||||
Gateway::sendToClient($client_id, $res_json);
|
||||
return;
|
||||
@@ -66,7 +67,7 @@ class AudioRevertLogic extends BaseLogic
|
||||
$res_json = BaseWssApi::json_wss('error','持续转写中,错误:',$data);
|
||||
Tools::log_to_write_txt($res_json);
|
||||
Gateway::sendToClient($client_id, $res_json);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user