From 2c17a4c24f247f2ca9a5acad9ca1094437cbf1f0 Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Thu, 12 Dec 2019 17:35:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8C=E4=B9=BE=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Common/function.php | 3 ++ .../Controller/DownloadController.class.php | 1 + .../Controller/PlayersController.class.php | 37 +++++++++++++++++++ .../Home/Controller/QueryController.class.php | 2 + 4 files changed, 43 insertions(+) diff --git a/Application/Home/Common/function.php b/Application/Home/Common/function.php index 892c35e21..1fb3c1774 100644 --- a/Application/Home/Common/function.php +++ b/Application/Home/Common/function.php @@ -393,6 +393,9 @@ function get_pay_way($id = null) case 9: return "双乾支付"; break; + case 15: + return "双乾支付-快捷"; + break; } } diff --git a/Application/Home/Controller/DownloadController.class.php b/Application/Home/Controller/DownloadController.class.php index 3f05a9ed8..fbb3391bc 100644 --- a/Application/Home/Controller/DownloadController.class.php +++ b/Application/Home/Controller/DownloadController.class.php @@ -27,6 +27,7 @@ class DownloadController extends BaseController { 7 => '苹果支付', 8 => '金猪支付', 9 => '双乾支付', + 15 => '双乾支付-快捷' ]; //提现状态 diff --git a/Application/Home/Controller/PlayersController.class.php b/Application/Home/Controller/PlayersController.class.php index 486613b21..2f4829fb0 100644 --- a/Application/Home/Controller/PlayersController.class.php +++ b/Application/Home/Controller/PlayersController.class.php @@ -98,11 +98,13 @@ class PlayersController extends BaseController { $parameter['level_promote_2'] = $levelPromote[0]; $parameter['level_promote_3'] = $levelPromote[1]; $parameter['level_promote_4'] = $levelPromote[2]; + $serverData = $this->getServer($relationGameId, $sdkVersion); $page = set_pagination($count, $row, $parameter); if ($page) { $this->assign('_page', $page); } $this->assign('listData',$rs); + $this->assign('serverData', $serverData); $this->assign('initBegTime', I('begtime')); $this->assign('initEndTime', I('endtime')); $this->display(); @@ -134,4 +136,39 @@ class PlayersController extends BaseController { } return $queryPromote; } + + public function getServer($relationGameId, $sdkVersion) + { + $result['status'] = 0; + $result['data'] = []; + + if (empty($relationGameId)) { + return $result; + } + + $map['relation_game_id'] = intval($relationGameId); + empty($sdkVersion) || $map['sdk_version'] = intval($sdkVersion); + + $gameIds = M('Game', 'tab_') + ->where($map) + ->getField('id', true); + + if (empty($gameIds)) { + return $result; + } + + $gameIds = implode(',', $gameIds); + $where['game_id'] = ['in', $gameIds]; + $where['show_status'] = 1; + + $serverData = M('Server', 'tab_') + ->field('server_id,server_name') + ->where($where) + ->order('server_version,start_time desc') + ->select(); + $result['status'] = 1; + $result['data'] = $serverData; + + return $result; + } } \ No newline at end of file diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index 2d52f6888..72c11f272 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -20,6 +20,8 @@ class QueryController extends BaseController 0 => '平台币', 1 => '支付宝', 2 => '微信', + 9 => '双乾支付', + 15 => '双乾支付' ]; public static $payStatus = [