diff --git a/app/ExceptionHandle.php b/app/ExceptionHandle.php index 9319475f..c18c84e5 100755 --- a/app/ExceptionHandle.php +++ b/app/ExceptionHandle.php @@ -24,6 +24,7 @@ use think\exception\ValidateException; use think\Response; use Throwable; use Exception; +use think\facade\Request; /** * 应用异常处理类 @@ -56,6 +57,7 @@ class ExceptionHandle extends Handle 'line' => $exception->getLine(), 'message' => $this->getMessage($exception), 'code' => $this->getCode($exception), + 'http' =>Request::url() ]; $log = "[{$data['code']}]{$data['message']}[{$data['file']}:{$data['line']}]"; if ($this->app->config->get('log.record_trace')) {