Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media-resource
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨昕
media-resource
Commits
96c004d8
Commit
96c004d8
authored
Jul 27, 2020
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sfd
parent
b3e1462c
Pipeline
#10120
passed with stages
in 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Handler.php
app/Exceptions/Handler.php
+5
-0
No files found.
app/Exceptions/Handler.php
View file @
96c004d8
...
...
@@ -56,6 +56,11 @@ class Handler extends ExceptionHandler
$path
=
$request
->
path
();
var_dump
(
$exception
->
getMessage
());
var_dump
(
$exception
->
getFile
());
var_dump
(
$exception
->
getLine
());
die
;
#检测当前请求是否是api路由
if
(
stripos
(
$path
,
'api/'
)
===
0
&&
(
$exception
instanceof
\Symfony\Component\HttpKernel\Exception\NotFoundHttpException
)
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment