public function _initialize()
 {
     parent::_initialize();
     $this->_sms = M('sendsms');
     $this->_user = D('user');
     $this->_member = D('member');
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->_mod = D('energy');
     $where['id'] = I('uid', '0', 'intval');
     $res = M('user')->where($where)->find();
     $token = I('token', '0', 'trim');
     if ($res['token'] != $token) {
         $appjson['state'] = false;
         $appjson['message'] = '令牌错误';
         if (C('APP_JSON_RETURN')) {
             $this->jsonReturn($appjson);
         }
     }
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->_mod = D('team');
     if (!in_array(ACTION_NAME, array('index', 'ranking'))) {
         $where['id'] = I('u_id', '0', 'intval');
         $res = M('user')->where($where)->find();
         $token = I('token', '0', 'trim');
         if ($res['token'] != $token) {
             $appjson['state'] = false;
             $appjson['message'] = '令牌错误';
             if (C('APP_JSON_RETURN')) {
                 $this->jsonReturn($appjson);
             }
         }
     }
 }
示例#4
0
 protected function _initialize()
 {
     parent::_initialize();
     $this->_mod = D('user');
 }
示例#5
0
 protected function _initialize()
 {
     parent::_initialize();
 }
示例#6
0
 protected function _initialize()
 {
     parent::_initialize();
     $this->_mod = D('game_cate');
 }