From e2088cc82d7e19d5604b166020faf5b41c47ed0a Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Tue, 9 Sep 2025 17:24:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E8=AF=91=E5=A4=B1=E8=B4=A5=E5=8E=9F?= =?UTF-8?q?=E5=9B=A0=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/queue/utils/XunfeiFanyi.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/queue/utils/XunfeiFanyi.php b/app/queue/utils/XunfeiFanyi.php index 4fe78ab..e380d21 100644 --- a/app/queue/utils/XunfeiFanyi.php +++ b/app/queue/utils/XunfeiFanyi.php @@ -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; } }