getStatusCode(); Response::create(Common::rj($statusCode, $e->getMessage()), 'json')->code($statusCode)->send(); } else if ($e instanceof AppException) { $statusCode = $e->getStatusCode(); Response::create(Common::rj($e->getCode(), $e->getMessage()), 'json')->code($statusCode)->send(); } //TODO::开发者对异常的操作 //可以在此交由系统处理 return parent::render($e); } }