/** * 返回403 * 可以根据实际情况在项目内覆盖 * * @return void */ public function redirectTo403() { if (IS_AJAX) { exit(Response::send_http_status(403)); } else { exit(Lang::get('_ERROR_403')); } }