fail('数据获取失败', [ 'file' => $e->getFile(), 'message' => $e->getMessage(), 'line' => $e->getLine(), ]); } else { return app('json')->fail('系统出现异常', [ 'message' => $e->getMessage(), 'file' => $e->getFile(), 'code' => $e->getCode(), 'line' => $e->getLine(), 'trace' => $e->getTrace(), 'previous' => $e->getPrevious(), ]); } } }