123456789101112131415161718192021 |
- <?php
- class CommonAction extends Action {
-
-
- public function _initialize( ){
- if(in_array(ACTION_NAME,array('wx_register') ))
- return;
- $this->userid = \Jiaruan\UcCookie::get();
- if(!$this->userid){
- header('Location: ?s=uc_manage/login');
- }
- $this->user_info = M('uc_user')->where(['ID'=>$this->userid])->find();
- }
-
- }
|