getError(), 422); } // 请求异常 if ($e instanceof HttpException && request()->isAjax()) { return JsonService::fail('系统错误'); }else{ $url = 0; $title = '系统错误'; $msg = addslashes($e->getMessage()); exit(view('public/error',compact('title', 'msg', 'url'))->getContent()); } } }