Esempio n. 1
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $noticeType = Tools::gameConfig('noticeType', $this->_gameObject->_gameId);
     $this->_assign['noticeType'] = $noticeType;
     // 		$this->_assign['forbid'] = array('0'=>'不屏蔽','1'=>'屏蔽');
     if ($this->_isPost() && !empty($_POST["subbutton"])) {
         $postData = array('title' => trim($_POST['title']), 'delay' => intval($_POST['IntervalTime']), 'begin' => trim($_POST['begin']), 'end' => trim($_POST['end']));
         if ($post) {
             $postData = array_merge($post, $postData);
         }
         $getData = $getData = $this->_gameObject->getGetData($get);
         $data = $this->getResult($UrlAppend, $getData, $postData);
         // 		print_r($postData);
         // 		print_r($data);
         // 		exit;
         if ($data['status'] == 1) {
             $jumpUrl = $this->_urlNotice();
             $this->jump('操作成功', 1, $jumpUrl);
         } else {
             $errorInfo = '操作失败:';
             $this->jump($errorInfo . $data['info'], -1);
         }
     }
     return $this->_assign;
 }
Esempio n. 2
0
 public function _init()
 {
     $this->_assign[self::ITEM_TYPE] = Tools::gameConfig(self::ITEM_TYPE, $this->_gameObject->_gameId);
     //itemTypes
     $this->_assign[self::BIND_TYPE] = Tools::gameConfig(self::BIND_TYPE, $this->_gameObject->_gameId);
     //bindType
     $this->_assign[self::GOLD_TYPE] = Tools::gameConfig(self::GOLD_TYPE, $this->_gameObject->_gameId);
     //goldType
     $this->_assign[self::KEY_TYPE] = Tools::gameConfig(self::KEY_TYPE, $this->_gameObject->_gameId);
     //keyType
     $this->_assign[self::ITEM_PACKAGE_TYPE] = Tools::gameConfig(self::ITEM_PACKAGE_TYPE, $this->_gameObject->_gameId);
     //keyType
     $this->_assign[self::EXCHANGE_TYPE] = Tools::gameConfig(self::EXCHANGE_TYPE, $this->_gameObject->_gameId);
     //keyType
     $this->_assign['itemReceiveConditions'] = $this->partner('ItemReceiveCondition');
     //礼包领取的条件
     $this->_assign['items'] = $this->partner('Item');
     $this->_assign['selected'][self::BIND_TYPE] = 2;
     //0:不绑定,1:绑定服,2:绑定玩家
     $this->_assign['selected'][self::GOLD_TYPE] = 2;
     //1:系统元宝,2:GM元宝
     $this->_assign['selected'][self::KEY_TYPE] = 10;
     //1:36位,2 10位
     $this->_assign['selected'][self::ITEM_PACKAGE_TYPE] = 1;
     //1:标准礼包,2: 共享礼包
     $this->_assign['selected'][self::EXCHANGE_TYPE] = 2;
     //1:补偿金币卡,2: 智能金币卡
     $this->_assign['URL_itemReceiveConditions'] = Tools::url(CONTROL, 'ItemReceiveCondition', array('timeout' => '1', 'zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
     $this->_assign['URL_itemUpdate'] = Tools::url(CONTROL, 'Item', array('timeout' => '1', 'zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
     $this->_assign['URL_itemCard'] = Tools::url(CONTROL, 'ItemCard', array('submit' => 1, 'zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
     $this->_assign['URL_playerLookup'] = Tools::url(CONTROL, 'PlayerLookup', array('sbm' => 1, 'zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
     $this->_assign['URL_ItemPackageEdit'] = Tools::url(CONTROL, 'ItemPackageEdit', array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
 }
Esempio n. 3
0
 public function _init()
 {
     $this->_assign['URL_itemsDel'] = $this->_urlItemsDel();
     $this->_backpackSearchType = Tools::gameConfig('backpackSearchType', $this->_gameObject->_gameId);
     $this->_assign['backpackSearchType'] = $this->_backpackSearchType;
     $this->_assign['userType'] = Tools::gameConfig('userType', $this->_gameObject->_gameId);
 }
Esempio n. 4
0
 public function _init()
 {
     $this->_lockUserTypes = Tools::gameConfig('lockUserType', $this->_gameObject->_gameId);
     $this->_assign['userType'] = Tools::gameConfig('userType', $this->_gameObject->_gameId);
     //$this->_assign['lockUserType'] = $this->_lockUserTypes;
     $this->_assign['lockUserType'] = $this->_lockUserTypes;
 }
Esempio n. 5
0
 public function _init()
 {
     $this->_assign['exchangeTypes'] = Tools::gameConfig('exchangeTypes', $this->_gameObject->_gameId);
     //itemTypes
     $this->_userType = Tools::gameConfig('userType', $this->_gameObject->_gameId);
     $this->_assign['userType'] = $this->_userType;
 }
Esempio n. 6
0
 public function _init()
 {
     $this->_assign['URL_TitleOrGagLocalLog'] = $this->_urlLocalLog();
     $this->_assign['URL_TitleOrGagInGame'] = $this->_urlInGame();
     $this->_assign['URL_AddTitleOrGag'] = $this->_urlLockAccountAdd();
     $this->_lockUserType = Tools::gameConfig('lockUserType', $this->_gameObject->_gameId);
 }
Esempio n. 7
0
 private function _career()
 {
     static $career = false;
     if ($career === false) {
         $career = Tools::gameConfig('career', $this->_gameObject->_gameId);
     }
     return $career;
 }
Esempio n. 8
0
 public function _init()
 {
     $this->_playerType = Tools::gameConfig('userType', $this->_gameObject->_gameId);
     $this->_assign['URL_itemsUpdate'] = $this->_urlBackpackUpdate();
     $this->_backpackSearchType = Tools::gameConfig('backpackSearchType', $this->_gameObject->_gameId);
     $this->_assign['backpackSearchType'] = $this->_backpackSearchType;
     $this->_assign['userType'] = $this->_playerType;
 }
Esempio n. 9
0
 public function _init()
 {
     $this->cardType = Tools::gameConfig('cardType', $this->_gameObject->_gameId);
     $this->_goods = $this->_getItemsName($this->_goods);
     $this->_assign['cardType'] = $cardType;
     $this->_assign['URL_itemCardApply'] = Tools::url(CONTROL, 'ItemCardApply', array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
     $this->_assign['URL_itemCardQuery'] = Tools::url(CONTROL, 'ItemCardQuery', array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
 }
Esempio n. 10
0
 public function _init()
 {
     $this->_assign[self::BIND_TYPE] = Tools::gameConfig(self::BIND_TYPE, $this->_gameObject->_gameId);
     //bindType
     $this->_assign[self::GOLD_TYPE] = Tools::gameConfig(self::GOLD_TYPE, $this->_gameObject->_gameId);
     //goldType
     $this->_assign['URL_itemCardApply'] = Tools::url(CONTROL, 'ItemCardApply', array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
     $this->_assign['URL_itemCardQuery'] = Tools::url(CONTROL, 'ItemCardQuery', array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
 }
Esempio n. 11
0
 public function _init()
 {
     $this->_assign['URL_LogTypeUpdate'] = $this->_urlLogTypeUpdate();
     $this->_playerLogTypes = $this->partner('PlayerLogType');
     //从日志类型Action接口中拿数据
     $this->userType = Tools::gameConfig('userType', $this->_gameObject->_gameId);
     $this->_assign['playerLogTypes'] = json_encode($this->_playerLogTypes);
     $this->_assign['userType'] = $this->userType;
 }
Esempio n. 12
0
 private function _vocationId($vocationId = 0)
 {
     static $vocation = false;
     //首次执行,放进内存保存
     if ($vocation === false) {
         $vocation = Tools::gameConfig('vocationId', $this->_gameObject->_gameId);
         //vocation 职业 :1武者 ,2气宗 ,3药师
     }
     return $vocation[$vocationId];
 }
Esempio n. 13
0
 public function _init()
 {
     $this->_assign[self::KEY_TYPE] = Tools::gameConfig(self::KEY_TYPE, $this->_gameObject->_gameId);
     //keyType
     $this->_assign[self::BIND_TYPE] = Tools::gameConfig(self::BIND_TYPE, $this->_gameObject->_gameId);
     //bindType
     $this->_assign[self::ITEM_PACKAGE_TYPE] = Tools::gameConfig(self::ITEM_PACKAGE_TYPE, $this->_gameObject->_gameId);
     //keyType
     $this->_assign['URL_itemUpdate'] = Tools::url(CONTROL, 'Item', array('timeout' => '1', 'zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
     $this->_assign['URL_itemCard'] = Tools::url(CONTROL, 'ItemCard', array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
 }
Esempio n. 14
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     // 		print_r($_POST);
     // 		$gameConf = $this->_gameObject->getIfConf();
     // 		$getData = $this->_gameObject->getGetData($gameConf['NoticeEdit']['get']);
     // 		$postData = $this->_gameObject->getPostData($_GET['id']);
     // 		if($post){
     // 			$postData = array_merge($post,$postData);
     // 		}
     // 		$postData = array_filter($postData);
     // 		$data = $this->_gameObject->getNotice($postData);
     // 		if($data['data']){
     // 			foreach($data['data'] as &$item){
     // 				if($item['id']==$_GET['id']){
     // 					$this->_assign['selected']	=	$item;
     // 				}
     // 			}
     // 		}
     $noticeType = Tools::gameConfig('noticeType', $this->_gameObject->_gameId);
     $this->_assign['noticeType'] = $noticeType;
     $this->_assign['forbid'] = array('0' => '不屏蔽', '1' => '屏蔽');
     if (isset($_GET['id'])) {
         $getData = $this->_gameObject->getGetData(array('type' => 'placardlist'));
         $data = $this->getResult($UrlAppend, $getData, array('id' => $_GET['id']));
         if ($data['status'] == 1) {
             $this->_assign['info'] = $data['data']['list'][0];
         }
     }
     if ($this->_isPost() && !empty($_POST["subbutton"])) {
         $postData = array('id' => trim($_GET["id"]), 'title' => trim($_POST['title']), 'delay' => intval($_POST['IntervalTime']), 'forbid' => intval($_POST['forbid']), 'type' => intval($_POST['type']), 'begin' => strtotime(trim($_POST['begin'])), 'end' => strtotime(trim($_POST['end'])));
         if ($post) {
             $postData = array_merge($post, $postData);
         }
         $getData = $getData = $this->_gameObject->getGetData($get);
         $data = $this->getResult($UrlAppend, $getData, $postData);
         // 			print_r($postData);
         // 			print_r($data);exit;
         if ($data['status'] == 1) {
             $jumpUrl = $this->_urlNotice();
             $this->jump('操作成功', 1, $jumpUrl);
         } else {
             $errorInfo = '操作失败:';
             $this->jump($errorInfo . $data['info'], -1);
         }
     }
     return $this->_assign;
 }
Esempio n. 15
0
 public function _init()
 {
     $this->_playerType = Tools::gameConfig('userType', $this->_gameObject->_gameId);
     $this->_cardType = Tools::gameConfig('cardType', $this->_gameObject->_gameId);
     $this->_assign['playerType'] = $this->_playerType;
     /*客服现在全服功能  */
     $utilRbac = $this->_getGlobalData('Util_Rbac', 'object');
     $userClass = $utilRbac->getUserClass();
     if ($userClass['_departmentId'] == 1 && in_array('kf_xz', $userClass['_roles'])) {
         unset($this->_cardType[3], $this->_cardType[4]);
     }
     /*客服现在全服功能  */
     $this->_assign['cardType'] = $this->_cardType;
     $this->_assign['items'] = $this->partner('Item');
     $this->_assign['URL_itemUpdate'] = Tools::url(CONTROL, 'Item', array('timeout' => '1', 'zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
 }
Esempio n. 16
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $noticeType = Tools::gameConfig('noticeType', $this->_gameObject->_gameId);
     $this->_assign['noticeType'] = $noticeType;
     if ($this->_isAjax()) {
         $postData = array('title' => trim($_POST['title']), 'delay' => intval($_POST['IntervalTime']), 'begin' => trim($_POST['begin']), 'end' => trim($_POST['end']));
         if ($post) {
             $postData = array_merge($post, $postData);
         }
         $getData = $getData = $this->_gameObject->getGetData($get);
         $data = $this->getResult($UrlAppend, $getData, $postData);
         if ($data['status'] == 1) {
             $this->ajaxReturn(array('status' => 1, 'info' => '操作成功!', 'data' => null));
         } else {
             $this->ajaxReturn(array('status' => 0, 'info' => $data['info'], 'data' => null));
         }
     }
     return $this->_assign;
 }
Esempio n. 17
0
 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $noticeType = Tools::gameConfig('noticeType', $this->_gameObject->_gameId);
     $this->_assign['noticeType'] = $noticeType;
     $this->_assign['forbid'] = array('0' => '不屏蔽', '1' => '屏蔽');
     if (isset($_GET['id']) && !$this->_isPost()) {
         $noticeType = array(0 => '跑马灯', 1 => '游戏信息公告', 2 => '喇叭', 3 => '跑马灯+聊天(紧急公告)', 4 => ' 聊天公告');
         $this->_assign['noticeType'] = $noticeType;
         $getData = $this->_gameObject->getGetData($get);
         $data = $this->getResult('listNotice', $getData, array('id' => $_GET['id']));
         //			print_r(array('id'=>$_GET['id']));
         //			print_r($data);
         //			exit;
         if ($data['status'] == 0) {
             $this->_assign['dataList'] = $data['data'];
         }
     }
     if ($this->_isPost() && !empty($_POST["subbutton"])) {
         $postData = array('id' => trim($_GET["id"]), 'title' => trim($_POST['title']), 'contents' => trim($_POST['contents']), 'intervals' => intval($_POST['intervals']), 'noticeType' => intval($_POST['noticeType']), 'startTime' => trim($_POST['startTime']), 'endTime' => trim($_POST['endTime']), 'op' => 0, 'playMode' => 1, 'status' => 1);
         if ($post) {
             $postData = array_merge($post, $postData);
         }
         $getData = $getData = $this->_gameObject->getGetData($get);
         $data = $this->getResult($UrlAppend, $getData, $postData);
         if ($data['status'] == 0) {
             $jumpUrl = $this->_urlNotice();
             $this->jump('操作成功', 1, $jumpUrl);
         } else {
             $errorInfo = '操作失败:';
             $this->jump($errorInfo . $data['info'], -1);
         }
     }
     return $this->_assign;
 }
Esempio n. 18
0
 public function main($UrlAppend = null, $get = null, $post = null)
 {
     if (!$this->_isPost()) {
         return $this->_assign;
     }
     $postData = $this->getPostData($post);
     $getData = $this->_gameObject->getGetData($get);
     $data = $this->getResult($UrlAppend, $getData, $postData);
     if ($data['status'] != 1) {
         $this->_assign['connectError'] = 'Error Info:' . $data['info'];
         return $this->_assign;
     }
     $cardInfo = $data['data'];
     $cardInfo['goods'] = json_decode($cardInfo['goods'], true);
     $itemsCon = array();
     if (is_array($cardInfo['goods'])) {
         foreach ($cardInfo['goods'] as $item) {
             $itemsCon[$item['goodsId']] = '';
         }
         $itemsCon = $this->_getItemsName($itemsCon);
         $cardInfo['itemInfo'] = '';
         foreach ($cardInfo['goods'] as $item) {
             $cardInfo['itemInfo'] .= $itemsCon[$item['goodsId']] . "(<font color='#FF0000'>{$item['num']}</font>),";
         }
         $bindTypes = Tools::gameConfig(self::BIND_TYPE, $this->_gameObject->_gameId);
         //bindType
         $goldTypes = Tools::gameConfig(self::GOLD_TYPE, $this->_gameObject->_gameId);
         //goldType
         $cardInfo['bindType'] = $bindTypes[$cardInfo['bindType']];
         $cardInfo['goldType'] = $goldTypes[$cardInfo['goldType']];
         $cardInfo['addTime'] = date('Y-m-d H:i:s', $cardInfo['addTime']);
         $cardInfo['exchangeTime'] = ($tmp = intval($cardInfo['exchangeTime'])) ? date('Y-m-d H:i:s', $tmp) : '--';
     }
     $this->_assign['cardInfo'] = $cardInfo;
     return $this->_assign;
 }
Esempio n. 19
0
 public function _init()
 {
     $this->_lockUserTypes = Tools::gameConfig('lockUserType', $this->_gameObject->_gameId);
 }
Esempio n. 20
0
 public function _init()
 {
     $this->userType = Tools::gameConfig('userType', $this->_gameObject->_gameId);
     $this->_assign['loginIdentifier'] = $this->userType;
 }
Esempio n. 21
0
 public function _init()
 {
     $this->_userType = Tools::gameConfig('userType', $this->_gameObject->_gameId);
     $this->_assign['userType'] = array(0 => '玩家ID', 1 => '玩家账号', 2 => '玩家昵称');
 }
Esempio n. 22
0
 private function _getLogDetail()
 {
     return Tools::gameConfig('LogDetail', $this->game_id);
 }
Esempio n. 23
0
 public function _init()
 {
     $this->_playerType = Tools::gameConfig('userType', $this->_gameObject->_gameId);
 }
Esempio n. 24
0
 public function _init()
 {
     $this->_assign['URL_itemsDel'] = $this->_urlItemsDel();
     $this->_assign['itemTypes'] = Tools::gameConfig('itemTypes', $this->_gameObject->_gameId);
 }
Esempio n. 25
0
 public function _init()
 {
     $this->_userType = Tools::gameConfig('userType', $this->_gameObject->_gameId);
     $this->_assign['userType'] = $this->_userType;
 }