Esempio n. 1
0
 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'));
     }
 }
Esempio n. 2
0
 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'));
     }
 }
Esempio n. 3
0
 protected function _before_execute()
 {
     parent::_before_execute();
     //$this->_pathway->addStep('管理',url('admin::default/index'));
 }
Esempio n. 4
0
 protected function _before_execute()
 {
     parent::_before_execute();
     $this->_pathway->addStep('首页');
 }