예제 #1
0
 private function _createCache()
 {
     if ($this->_modelGameSerList->createToCache()) {
         $this->_utilMsg->showMsg('缓存生成成功', 1);
     } else {
         $this->_utilMsg->showMsg('缓存生成失败', -2);
     }
 }
예제 #2
0
 private function _createCache()
 {
     if ($this->_modelGameSerList->createToCache()) {
         $this->_utilMsg->showMsg(Tools::getLang('UPDATE_SUCCESS', 'Common'), 1);
     } else {
         $this->_utilMsg->showMsg(Tools::getLang('UPDATE_ERROR', 'Common'), -2);
     }
 }
예제 #3
0
 /**
  * 删除房间内的指定服务器
  */
 private function _delServer()
 {
     if ($_POST['server_list'] && $this->_isPost()) {
         $this->_modelGameSerList = $this->_getGlobalData('Model_GameSerList', 'object');
         $updateServer = implode(',', $_POST['server_list']);
         if ($this->_modelGameSerList->update(array('room_id' => '0'), "Id in ({$updateServer})")) {
             $this->_modelGameSerList->createToCache();
             $this->_utilMsg->showMsg(Tools::getLang('DEL_SUCESS', 'Common'));
         } else {
             $this->_utilMsg->showMsg(Tools::getLang('DEL_ERROR', 'Common'), -2);
         }
     }
 }
예제 #4
0
 /**
  * 删除房间内的指定服务器
  */
 private function _delServer()
 {
     if ($_POST['server_list'] && $this->_isPost()) {
         $this->_modelGameSerList = $this->_getGlobalData('Model_GameSerList', 'object');
         $updateServer = implode(',', $_POST['server_list']);
         if ($this->_modelGameSerList->update(array('room_id' => '0'), "Id in ({$updateServer})")) {
             $this->_modelGameSerList->createToCache();
             $this->_utilMsg->showMsg('删除指定服务器列表成功');
         } else {
             $this->_utilMsg->showMsg('删除指定服务器列表失败.', -2);
         }
     }
 }