diff --git a/src/CrawlerTrait.php b/src/CrawlerTrait.php index f15e513..7d694ea 100644 --- a/src/CrawlerTrait.php +++ b/src/CrawlerTrait.php @@ -14,7 +14,6 @@ use think\Config; use think\Cookie; use think\Error; -use think\Exception; use think\helper\Arr; use think\helper\Str; use think\Request; @@ -79,7 +78,7 @@ public function call($method, $uri, $parameters = [], $cookies = [], $files = [] ); try { $response = App::run($request); - } catch (Exception $e) { + } catch (\Exception $e) { $response = Error::getExceptionHandler()->render($e); } catch (\Throwable $e) { $response = Error::getExceptionHandler()->render($e);