private function _gameOperatorAdd()
 {
     if ($this->_isPost()) {
         $this->_modelGameOperator = $this->_getGlobalData('Model_GameOperator', 'object');
         $vipSetup = array('vip_timeout' => explode(',', $_POST['vip_timeout']), 'vip_pay' => explode(',', $_POST['vip_pay']));
         $addData = array('game_type_id' => $_POST['game_type'], 'operator_id' => $_POST['operator_id'], 'url' => trim($_POST['url']), 'vip_setup' => serialize($vipSetup));
         if ($_POST['ext']) {
             $addData['ext'] = serialize($_POST['ext']);
         }
         $this->_modelGameOperator->add($addData);
         $this->_modelGameOperator->createCache();
         $this->_utilMsg->showMsg(false, 1, Tools::url(CONTROL, ACTION));
     } else {
         $gameTypeList = $this->_getGlobalData('game_type');
         $gameTypeList = Model::getTtwoArrConvertOneArr($gameTypeList, 'Id', 'name');
         $operatorList = $this->_getGlobalData('operator_list');
         $operatorList = Model::getTtwoArrConvertOneArr($operatorList, 'Id', 'operator_name');
         $this->_view->assign('gameTypeList', $gameTypeList);
         $this->_view->assign('operatorList', $operatorList);
         $this->_view->set_tpl(array('body' => 'GameOperator/EditGameOperator.html'));
         $this->_view->assign('isAdd', true);
         $this->_utilMsg->createNavBar();
         $this->_view->display();
     }
 }
 /**
  * 增加游戏,运营商索引
  */
 private function _vipAdd()
 {
     if (count($_POST['operator_ids']) && isset($_POST['game_type'])) {
         $this->_modelGameOperator = $this->_getGlobalData('Model_GameOperator', 'object');
         $vipSetup = serialize(array('vip_timeout' => array(70, 60, 50, 40, 30, 10, 5), 'vip_pay' => array(0, 1000, 2000, 3000, 4000, 5000, 6000)));
         //默认的vipsetup
         foreach ($_POST['operator_ids'] as $value) {
             $this->_modelGameOperator->add(array('game_type_id' => $_POST['game_type'], 'operator_id' => $value, 'vip_setup' => $vipSetup));
         }
         $this->_modelGameOperator->createCache();
         $this->_utilMsg->showMsg(false);
     } else {
         $this->_utilMsg->showMsg('添加索引失败', -2);
     }
 }