Commit 96c004d8 by 杨昕

sfd

parent b3e1462c
Pipeline #10120 passed with stages
in 41 seconds
...@@ -56,6 +56,11 @@ class Handler extends ExceptionHandler ...@@ -56,6 +56,11 @@ class Handler extends ExceptionHandler
$path = $request->path(); $path = $request->path();
var_dump($exception->getMessage());
var_dump($exception->getFile());
var_dump($exception->getLine());die;
#检测当前请求是否是api路由 #检测当前请求是否是api路由
if (stripos($path,'api/') === 0 if (stripos($path,'api/') === 0
&& ($exception instanceof \Symfony\Component\HttpKernel\Exception\NotFoundHttpException) ) { && ($exception instanceof \Symfony\Component\HttpKernel\Exception\NotFoundHttpException) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment