'beforeAction']; } /** * @param $event * @throws TooManyRequestsHttpException */ public function beforeAction($event) { // 检测站点是否过期 if (Mall::getIsExpired($this->mall_id)) { $redirect_url = Yii::$app->urlManager->createAbsoluteUrl(['admin/auth/expired']); header(sprintf('Location: %s', $redirect_url)); } } }