翻译失败原因记录
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
namespace app\queue\utils;
|
||||
|
||||
|
||||
use support\Log;
|
||||
|
||||
class XunfeiFanyi
|
||||
{
|
||||
|
||||
@@ -117,10 +119,12 @@ digest: %s", "ntrans.xfyun.cn", $date, $digestBase64);
|
||||
return $data["data"]["result"];
|
||||
} else {
|
||||
$this->error = $data["message"];
|
||||
Log::error("XunfeiFanyi 失败: ".$data["message"],[$data]);
|
||||
return false;
|
||||
}
|
||||
} catch (\Throwable $th) {
|
||||
$this->error = $th->getMessage();
|
||||
Log::error("XunfeiFanyi 错误: ".$th->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user