diff --git a/app/util/Xunfei.php b/app/util/Xunfei.php index 39a66da..03db095 100644 --- a/app/util/Xunfei.php +++ b/app/util/Xunfei.php @@ -119,10 +119,12 @@ digest: %s", "ntrans.xfyun.cn", $date, $digestBase64); return $data["data"]["result"]; } else { $this->error = $data["message"]; + log::error('fanyi_fail',[ $data["message"]]); return false; } } catch (\Throwable $th) { $this->error = $th->getMessage(); + log::error('fanyi_error',[$th->getMessage()]); return false; } }