protected function _before_execute() { parent::_before_execute(); $this->_user = Account::find('user_id = ?', $this->_user_id)->getOne(); if (!$this->_user->id()) { return $this->msg('请先登陆', url('default::default/signin')); } }
protected function _before_execute() { parent::_before_execute(); $this->_user = Account::find('user_id = ?', $this->_user_id)->getOne(); if (!in_array($this->_user->user_mail, Q::ini('appini/managers'))) { return $this->msg('请先登陆', url('default::default/signin')); } }
protected function _before_execute() { parent::_before_execute(); //$this->_pathway->addStep('管理',url('admin::default/index')); }
protected function _before_execute() { parent::_before_execute(); $this->_pathway->addStep('首页'); }