双乾支付

master
sunke 5 years ago
parent d6186a9579
commit 2c17a4c24f

@ -393,6 +393,9 @@ function get_pay_way($id = null)
case 9:
return "双乾支付";
break;
case 15:
return "双乾支付-快捷";
break;
}
}

@ -27,6 +27,7 @@ class DownloadController extends BaseController {
7 => '苹果支付',
8 => '金猪支付',
9 => '双乾支付',
15 => '双乾支付-快捷'
];
//提现状态

@ -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;
}
}

@ -20,6 +20,8 @@ class QueryController extends BaseController
0 => '平台币',
1 => '支付宝',
2 => '微信',
9 => '双乾支付',
15 => '双乾支付'
];
public static $payStatus = [

Loading…
Cancel
Save