翻译失败原因记录

This commit is contained in:
2025-09-09 17:24:11 +08:00
parent ed5b21e349
commit e2088cc82d
+4
View File
@@ -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;
}
}