CommonAction.class.php 343 B

123456789101112131415161718192021
  1. <?php
  2. class CommonAction extends Action {
  3. public function _initialize( ){
  4. if(in_array(ACTION_NAME,array('wx_register') ))
  5. return;
  6. $this->userid = \Jiaruan\UcCookie::get();
  7. if(!$this->userid){
  8. header('Location: ?s=uc_manage/login');
  9. }
  10. $this->user_info = M('uc_user')->where(['ID'=>$this->userid])->find();
  11. }
  12. }