|
|
|
@ -29,8 +29,15 @@ class QueryController extends BaseController
|
|
|
|
|
|
|
|
|
|
public function recharge($p = 0)
|
|
|
|
|
{
|
|
|
|
|
$page = intval($p);
|
|
|
|
|
$page = $page ? $page : 1; //默认显示第一页数据arraypage
|
|
|
|
|
$page = intval(I('p', 1));
|
|
|
|
|
$row = intval(I('row', 10));
|
|
|
|
|
$ownId = intval(I('own_id'), 0);//本账号
|
|
|
|
|
$relationGameId = intval(I('relation_game_id', 0));
|
|
|
|
|
$sdkVersion = intval(I('sdk_version', 0));
|
|
|
|
|
$serverId = trim(I('server_id', ''));
|
|
|
|
|
$gamePlayerName = trim(I('game_player_name', ''));
|
|
|
|
|
$userAccount = trim(I('user_account', ''));
|
|
|
|
|
$orderNumber = trim(I('order_number', ''));
|
|
|
|
|
$nowTime = date('Y-m-d');
|
|
|
|
|
$initBegTime = date('Y-m-d', strtotime('-6 day', strtotime($nowTime)));
|
|
|
|
|
$initBegTime = empty(I('begtime')) ? $initBegTime : I('begtime');
|
|
|
|
@ -39,52 +46,38 @@ class QueryController extends BaseController
|
|
|
|
|
$begTime = strtotime($initBegTime);
|
|
|
|
|
$endTime = strtotime($initEndTime);
|
|
|
|
|
$endTime += 3600 * 24;
|
|
|
|
|
$levelPromote = $this->getLevelPromote();
|
|
|
|
|
$queryPromote = $this->getQueryPromote($levelPromote);
|
|
|
|
|
$loginPromote = $this->getLoginPromote();
|
|
|
|
|
|
|
|
|
|
if (isset($_REQUEST['row'])) {
|
|
|
|
|
$row = $_REQUEST['row'];
|
|
|
|
|
$map = [];
|
|
|
|
|
if ($ownId) {
|
|
|
|
|
$map['tab_spend.promote_id'] = $queryPromote['id'];
|
|
|
|
|
} else {
|
|
|
|
|
$row = 10;
|
|
|
|
|
}
|
|
|
|
|
$map['chain'] = ['like', $queryPromote['chain'] . $queryPromote['id'] . '/%'];
|
|
|
|
|
$ids = M('promote', 'tab_')->where($map)->getField('id', true);
|
|
|
|
|
$ids[] = $queryPromote['id'];
|
|
|
|
|
|
|
|
|
|
$map1['chain'] = ['like', '%' . PID . '/' . '%'];
|
|
|
|
|
$rs = M('promote', 'tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if (empty($rs)) {
|
|
|
|
|
$map['tab_spend.promote_id'] = PID;
|
|
|
|
|
} else {
|
|
|
|
|
foreach ($rs as $rsKey => $rsValue) {
|
|
|
|
|
$id = $rsValue['id'];
|
|
|
|
|
$childPromoteIds .= $id . ',';
|
|
|
|
|
}
|
|
|
|
|
$childPromoteIds = rtrim($childPromoteIds, ',');
|
|
|
|
|
$childPromoteIds .= ',' . PID;
|
|
|
|
|
$map['tab_spend.promote_id'] = ['in', $childPromoteIds];
|
|
|
|
|
$map = [];
|
|
|
|
|
$map['tab_spend.promote_id'] = ['in', $ids];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$levelPromote = $this->getLevelPromote();
|
|
|
|
|
$queryPromote = $this->getQueryPromote($levelPromote);
|
|
|
|
|
$map2[] = [
|
|
|
|
|
'_logic' => 'or',
|
|
|
|
|
'id' => $queryPromote['id'],
|
|
|
|
|
'chain' => ['like', $queryPromote['chain'] . $queryPromote['id'] . '/%']
|
|
|
|
|
];
|
|
|
|
|
$ids = M('promote', 'tab_')->where($map2)->getField('id', true);
|
|
|
|
|
if (empty($ids)) {
|
|
|
|
|
$ids = array();
|
|
|
|
|
if (!empty($relationGameId)) {
|
|
|
|
|
$map['tab_game.relation_game_id'] = $relationGameId;
|
|
|
|
|
}
|
|
|
|
|
if (empty($levelPromote)) {
|
|
|
|
|
array_push($ids, PID);
|
|
|
|
|
|
|
|
|
|
if (!empty($sdkVersion)) {
|
|
|
|
|
$map['tab_game.sdk_version'] = $sdkVersion;
|
|
|
|
|
}
|
|
|
|
|
array_push($ids, $queryPromote['id']);
|
|
|
|
|
if (!empty($ids)) {
|
|
|
|
|
$map['tab_spend.promote_id'] = ['in', $ids];
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
$map['_string'] = '1<>1';
|
|
|
|
|
if (!empty($serverId)) {
|
|
|
|
|
$map['tab_spend.server_id'] = $serverId;
|
|
|
|
|
}
|
|
|
|
|
if (!empty($gamePlayerName)) {
|
|
|
|
|
$map['tab_spend.game_player_name'] = $gamePlayerName;
|
|
|
|
|
}
|
|
|
|
|
if (!empty($userAccount)) {
|
|
|
|
|
$map['tab_spend.user_account'] = $userAccount;
|
|
|
|
|
}
|
|
|
|
|
if (!empty(I('own_id'))) {
|
|
|
|
|
$map['tab_spend.promote_id'] = $queryPromote['id'];//本账号
|
|
|
|
|
if (!empty($orderNumber)) {
|
|
|
|
|
$map['tab_spend.order_number'] = $orderNumber;
|
|
|
|
|
}
|
|
|
|
|
if (isset($_REQUEST['pay_way']) && $_REQUEST['pay_way'] !== '') {
|
|
|
|
|
$payWay = intval(I('pay_way'));
|
|
|
|
@ -97,13 +90,6 @@ class QueryController extends BaseController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
empty(I('relation_game_id')) || $map['tab_game.relation_game_id'] = I('relation_game_id');
|
|
|
|
|
empty(I('sdk_version')) || $map['tab_game.sdk_version'] = I('sdk_version');
|
|
|
|
|
empty(I('server_id')) || $map['tab_spend.server_id'] = I('server_id');
|
|
|
|
|
empty(I('game_player_name')) || $map['tab_spend.game_player_name'] = ['like', '%' . I('game_player_name') . '%'];
|
|
|
|
|
empty(I('user_account')) || $map['tab_spend.user_account'] = I('user_account');
|
|
|
|
|
empty(I('order_number')) || $map['tab_spend.order_number'] = I('order_number');
|
|
|
|
|
$map['tab_spend.pay_time'] = ['between', [$begTime, $endTime - 1]];
|
|
|
|
|
$map['tab_spend.pay_status'] = 1;
|
|
|
|
|
$map['tab_spend.is_check'] = ['neq', 2];
|
|
|
|
@ -173,52 +159,46 @@ class QueryController extends BaseController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//分页
|
|
|
|
|
$parameter['p'] = I('get.p', 1);
|
|
|
|
|
$parameter['row'] = I('get.row');
|
|
|
|
|
$parameter['p'] = $page;
|
|
|
|
|
$parameter['row'] = $row;
|
|
|
|
|
$parameter['begtime'] = $initBegTime;
|
|
|
|
|
$parameter['endtime'] = $initEndTime;
|
|
|
|
|
empty(I('relation_game_id')) || $parameter['relation_game_id'] = I('relation_game_id');
|
|
|
|
|
empty(I('sdk_version')) || $parameter['sdk_version'] = I('sdk_version');
|
|
|
|
|
empty(I('server_id')) || $parameter['server_id'] = I('server_id');
|
|
|
|
|
empty(I('game_player_name')) || $parameter['game_player_name'] = I('game_player_name');
|
|
|
|
|
empty(I('user_account')) || $parameter['user_account'] = I('user_account');
|
|
|
|
|
empty(I('team_leader_id')) || $parameter['team_leader_id'] = I('team_leader_id');
|
|
|
|
|
empty(I('promote_id')) || $parameter['promote_id'] = I('promote_id');
|
|
|
|
|
empty(I('own_id')) || $parameter['own_id'] = I('own_id');
|
|
|
|
|
empty(I('level_promote_2')) || $parameter['level_promote_2'] = I('level_promote_2');
|
|
|
|
|
empty(I('level_promote_3')) || $parameter['level_promote_3'] = I('level_promote_3');
|
|
|
|
|
empty(I('level_promote_4')) || $parameter['level_promote_4'] = I('level_promote_4');
|
|
|
|
|
$parameter['relation_game_id'] = $relationGameId;
|
|
|
|
|
$parameter['sdk_version'] = $sdkVersion;
|
|
|
|
|
$parameter['server_id'] = $serverId;
|
|
|
|
|
$parameter['game_player_name'] = $gamePlayerName;
|
|
|
|
|
$parameter['user_account'] = $userAccount;
|
|
|
|
|
$parameter['order_number'] = $orderNumber;
|
|
|
|
|
$parameter['own_id'] = $ownId;
|
|
|
|
|
$parameter['level_promote_2'] = intval(I('level_promote_2', 0));
|
|
|
|
|
$parameter['level_promote_3'] = intval(I('level_promote_3', 0));
|
|
|
|
|
$parameter['level_promote_4'] = intval(I('level_promote_4', 0));
|
|
|
|
|
!isset($_REQUEST['pay_way']) || $parameter['pay_way'] = I('pay_way');
|
|
|
|
|
|
|
|
|
|
$serverData = $this->getServer(I('relation_game_id'), I('sdk_version'));
|
|
|
|
|
|
|
|
|
|
$thisParentPromoteId = getParentPromoteId(PID);//本账号上级渠道ID
|
|
|
|
|
$page = set_pagination($count, $row, $parameter);
|
|
|
|
|
if ($page) {
|
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->assign('listData', $data);
|
|
|
|
|
$this->assign('count', $count);
|
|
|
|
|
$this->assign('initBegTime', $initBegTime);
|
|
|
|
|
$this->assign('initEndTime', $initEndTime);
|
|
|
|
|
$this->assign('setdate', date("Y-m-d"));
|
|
|
|
|
$this->assign('serverData', $serverData['data']);
|
|
|
|
|
$this->assign('thisParentPromoteId', $thisParentPromoteId);
|
|
|
|
|
$this->assign('pID', PID);
|
|
|
|
|
$this->assign('ownId', I('own_id'));
|
|
|
|
|
$this->assign('ownId', $ownId);
|
|
|
|
|
$this->assign('payWayData', QueryController::$payWay);
|
|
|
|
|
if (!empty(I('team_leader_id'))) {
|
|
|
|
|
$this->assign('teamLeaderData', getAllPromoteListByType(1, false, intval(I('team_leader_id'))));
|
|
|
|
|
}
|
|
|
|
|
$this->meta_title = "订单查询";
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function register($p = 0)
|
|
|
|
|
{
|
|
|
|
|
$page = intval($p);
|
|
|
|
|
$page = $page ? $page : 1; //默认显示第一页数据arraypage
|
|
|
|
|
$page = intval(I('p', 1));
|
|
|
|
|
$row = intval(I('row', 10));
|
|
|
|
|
$ownId = intval(I('own_id'), 0);//本账号
|
|
|
|
|
$account = trim(I('account', ''));
|
|
|
|
|
$id = intval(I('id', 0));
|
|
|
|
|
$nowTime = date('Y-m-d');
|
|
|
|
|
$initBegTime = date('Y-m-d', strtotime('-6 day', strtotime($nowTime)));
|
|
|
|
|
$initBegTime = empty(I('begtime')) ? $initBegTime : I('begtime');
|
|
|
|
@ -227,59 +207,28 @@ class QueryController extends BaseController
|
|
|
|
|
$begTime = strtotime($initBegTime);
|
|
|
|
|
$endTime = strtotime($initEndTime);
|
|
|
|
|
$endTime += 3600 * 24;
|
|
|
|
|
|
|
|
|
|
if (isset($_REQUEST['row'])) {
|
|
|
|
|
$row = $_REQUEST['row'];
|
|
|
|
|
} else {
|
|
|
|
|
$row = 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$map1['chain'] = ['like', '%' . PID . '/' . '%'];
|
|
|
|
|
$rs = M('promote', 'tab_')->where($map1)->field('id,account,nickname')->select();
|
|
|
|
|
$childPromoteIds = '';
|
|
|
|
|
if (empty($rs)) {
|
|
|
|
|
$map['tab_user.promote_id'] = PID;
|
|
|
|
|
} else {
|
|
|
|
|
foreach ($rs as $rsKey => $rsValue) {
|
|
|
|
|
$id = $rsValue['id'];
|
|
|
|
|
$childPromoteIds .= $id . ',';
|
|
|
|
|
}
|
|
|
|
|
$childPromoteIds = rtrim($childPromoteIds, ',');
|
|
|
|
|
$childPromoteIds .= ',' . PID;
|
|
|
|
|
$map['tab_user.promote_id'] = ['in', $childPromoteIds];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$promote = $this->getLoginPromote();
|
|
|
|
|
$levelPromote = $this->getLevelPromote();
|
|
|
|
|
$queryPromote = $this->getQueryPromote($levelPromote);
|
|
|
|
|
$map2[] = [
|
|
|
|
|
'_logic' => 'or',
|
|
|
|
|
'id' => $queryPromote['id'],
|
|
|
|
|
'chain' => ['like', $queryPromote['chain'] . $queryPromote['id'] . '/%']
|
|
|
|
|
];
|
|
|
|
|
$ids = M('promote', 'tab_')->where($map2)->getField('id', true);
|
|
|
|
|
if (empty($ids)) {
|
|
|
|
|
$ids = array();
|
|
|
|
|
}
|
|
|
|
|
if (empty($levelPromote)) {
|
|
|
|
|
array_push($ids, PID);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
array_push($ids, $queryPromote['id']);
|
|
|
|
|
if (!empty($ids)) {
|
|
|
|
|
$map['tab_user.promote_id'] = ['in', $ids];
|
|
|
|
|
$loginPromote = $this->getLoginPromote();
|
|
|
|
|
|
|
|
|
|
$map = [];
|
|
|
|
|
if ($ownId) {
|
|
|
|
|
$map['tab_user.promote_id'] = $queryPromote['id'];
|
|
|
|
|
} else {
|
|
|
|
|
$map['_string'] = '1<>1';
|
|
|
|
|
}
|
|
|
|
|
$map['chain'] = ['like', $queryPromote['chain'] . $queryPromote['id'] . '/%'];
|
|
|
|
|
$ids = M('promote', 'tab_')->where($map)->getField('id', true);
|
|
|
|
|
$ids[] = $queryPromote['id'];
|
|
|
|
|
|
|
|
|
|
if (!empty(I('own_id'))) {
|
|
|
|
|
$map['tab_user.promote_id'] = $queryPromote['id'];//本账号
|
|
|
|
|
$map = [];
|
|
|
|
|
$map['tab_user.promote_id'] = ['in', $ids];
|
|
|
|
|
}
|
|
|
|
|
if (!empty($account)) {
|
|
|
|
|
$map['tab_user.account'] = $account;
|
|
|
|
|
}
|
|
|
|
|
if (!empty($id)) {
|
|
|
|
|
$map['tab_user.id'] = $id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$map['tab_user.register_time'] = ['between', [$begTime, $endTime - 1]];
|
|
|
|
|
empty(I('account')) || $map['tab_user.account'] = I('account');
|
|
|
|
|
empty(I('id')) || $map['tab_user.id'] = intval(I('id'));
|
|
|
|
|
|
|
|
|
|
$data = [];
|
|
|
|
|
$count = 0;
|
|
|
|
@ -317,14 +266,12 @@ class QueryController extends BaseController
|
|
|
|
|
$parameter['row'] = I('get.row');
|
|
|
|
|
$parameter['begtime'] = $initBegTime;
|
|
|
|
|
$parameter['endtime'] = $initEndTime;
|
|
|
|
|
empty(I('team_leader_id')) || $parameter['team_leader_id'] = I('team_leader_id');
|
|
|
|
|
empty(I('promote_id')) || $parameter['promote_id'] = I('promote_id');
|
|
|
|
|
empty(I('own_id')) || $parameter['own_id'] = I('own_id');
|
|
|
|
|
empty(I('account')) || $parameter['account'] = I('account');
|
|
|
|
|
empty(I('level_promote_2')) || $parameter['level_promote_2'] = I('level_promote_2');
|
|
|
|
|
empty(I('level_promote_3')) || $parameter['level_promote_3'] = I('level_promote_3');
|
|
|
|
|
empty(I('level_promote_4')) || $parameter['level_promote_4'] = I('level_promote_4');
|
|
|
|
|
$thisParentPromoteId = getParentPromoteId(PID);//本账号上级渠道ID
|
|
|
|
|
$parameter['account'] = $account;
|
|
|
|
|
empty($id) || $parameter['id'] = $id;
|
|
|
|
|
$parameter['own_id'] = $ownId;
|
|
|
|
|
$parameter['level_promote_2'] = intval(I('level_promote_2', 0));
|
|
|
|
|
$parameter['level_promote_3'] = intval(I('level_promote_3', 0));
|
|
|
|
|
$parameter['level_promote_4'] = intval(I('level_promote_4', 0));
|
|
|
|
|
$page = set_pagination($count, $row, $parameter);
|
|
|
|
|
if ($page) {
|
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
@ -335,12 +282,7 @@ class QueryController extends BaseController
|
|
|
|
|
$this->assign('initBegTime', $initBegTime);
|
|
|
|
|
$this->assign('initEndTime', $initEndTime);
|
|
|
|
|
$this->assign('setdate', date("Y-m-d"));
|
|
|
|
|
$this->assign('thisParentPromoteId', $thisParentPromoteId);
|
|
|
|
|
$this->assign('pID', PID);
|
|
|
|
|
$this->assign('ownId', I('own_id'));
|
|
|
|
|
if (!empty(I('team_leader_id'))) {
|
|
|
|
|
$this->assign('teamLeaderData', getAllPromoteListByType(1, false, intval(I('team_leader_id'))));
|
|
|
|
|
}
|
|
|
|
|
$this->assign('ownId', $ownId);
|
|
|
|
|
$this->meta_title = '注册明细';
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
@ -1310,20 +1252,7 @@ class QueryController extends BaseController
|
|
|
|
|
$allGameIs = array_column($allGameIs, 'game_id');
|
|
|
|
|
|
|
|
|
|
$records = [];
|
|
|
|
|
$allData['role_num'] = 0;
|
|
|
|
|
$allData['user_num'] = 0;
|
|
|
|
|
$allData['new_user_num'] = 0;
|
|
|
|
|
$allData['new_device_num'] = 0;
|
|
|
|
|
$allData['new_ip_num'] = 0;
|
|
|
|
|
$allData['login_user_num'] = 0;
|
|
|
|
|
$allData['spend_user_num'] = 0;
|
|
|
|
|
$allData['spend_num'] = 0;
|
|
|
|
|
$allData['spend_all_amount'] = 0;
|
|
|
|
|
$allData['spend_cash'] = 0;
|
|
|
|
|
$allData['spend_generic'] = 0;
|
|
|
|
|
$allData['spend_binding'] = 0;
|
|
|
|
|
$allData['spend_discount'] = 0;
|
|
|
|
|
$allData['spend_voucher'] = 0;
|
|
|
|
|
$allData = [];
|
|
|
|
|
if (!empty($data)) {
|
|
|
|
|
if (intval($endTime - $begTime) / (24 * 3600) <= 31) {
|
|
|
|
|
$gameIds = array_column($data, 'game_id');
|
|
|
|
@ -1386,6 +1315,8 @@ class QueryController extends BaseController
|
|
|
|
|
$allData['spend_generic'] = $spendRepository->getPayAmountByGameAndType($params);//通用币充值
|
|
|
|
|
$params['pay_way'] = -1;
|
|
|
|
|
$allData['spend_binding'] = $spendRepository->getPayAmountByGameAndType($params);//绑定币充值
|
|
|
|
|
$allData['spend_discount'] = 0;
|
|
|
|
|
$allData['spend_voucher'] = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1975,6 +1906,11 @@ class QueryController extends BaseController
|
|
|
|
|
public function achievement()
|
|
|
|
|
{
|
|
|
|
|
$time = I('time', date('Y-m-d'));
|
|
|
|
|
if(!empty($time)) {
|
|
|
|
|
$defaultTime = $time ;
|
|
|
|
|
}else {
|
|
|
|
|
$defaultTime = date('Y-m-d',time());
|
|
|
|
|
}
|
|
|
|
|
$sdkVersion = I('sdk_version', 0);
|
|
|
|
|
$gameId = I('game_id', 0);
|
|
|
|
|
$serverId = I('server_id', 0);
|
|
|
|
@ -2068,33 +2004,33 @@ class QueryController extends BaseController
|
|
|
|
|
if (I('p', 1) == 1) {
|
|
|
|
|
$selfParams = $params;
|
|
|
|
|
$selfParams['isContainSubs'] = false;
|
|
|
|
|
$selfCreateRoleCountList = $promoteRepository->getCreateRoleCountByIds([$promote['id']], $selfParams);
|
|
|
|
|
$selfCreateRoleUserCountList = $promoteRepository->getCreateRoleUserCountByIds([$promote['id']], $selfParams);
|
|
|
|
|
$selfNewCreateRoleUserCountList = $promoteRepository->getNewCreateRoleUserCountByIds([$promote['id']], $selfParams);
|
|
|
|
|
// $selfNewCreateRoleDeviceCountList = $promoteRepository->getNewCreateRoleDeviceCountByIds([$promote['id']], $selfParams);
|
|
|
|
|
$selfNewCreateRoleIpCountList = $promoteRepository->getNewCreateRoleIpCountByIds([$promote['id']], $selfParams);
|
|
|
|
|
$selfLoginUserCountList = $promoteRepository->getLoginUserCountByIds([$promote['id']], $selfParams);
|
|
|
|
|
$selfRechargeCountList = $promoteRepository->getRechargeCountByIds([$promote['id']], $selfParams);
|
|
|
|
|
$selfRechargeUserCountList = $promoteRepository->getRechargeUserCountByIds([$promote['id']], $selfParams);
|
|
|
|
|
$selfRechargeAmountList = $promoteRepository->getRechargeAmountByIds([$promote['id']], $selfParams);
|
|
|
|
|
|
|
|
|
|
$selfCreateRoleCountList = $promoteRepository->getCreateRoleCountByIds([$parent['id']], $selfParams);
|
|
|
|
|
$selfCreateRoleUserCountList = $promoteRepository->getCreateRoleUserCountByIds([$parent['id']], $selfParams);
|
|
|
|
|
$selfNewCreateRoleUserCountList = $promoteRepository->getNewCreateRoleUserCountByIds([$parent['id']], $selfParams);
|
|
|
|
|
// $selfNewCreateRoleDeviceCountList = $promoteRepository->getNewCreateRoleDeviceCountByIds([$parent['id']], $selfParams);
|
|
|
|
|
$selfNewCreateRoleIpCountList = $promoteRepository->getNewCreateRoleIpCountByIds([$parent['id']], $selfParams);
|
|
|
|
|
$selfLoginUserCountList = $promoteRepository->getLoginUserCountByIds([$parent['id']], $selfParams);
|
|
|
|
|
$selfRechargeCountList = $promoteRepository->getRechargeCountByIds([$parent['id']], $selfParams);
|
|
|
|
|
$selfRechargeUserCountList = $promoteRepository->getRechargeUserCountByIds([$parent['id']], $selfParams);
|
|
|
|
|
$selfRechargeAmountList = $promoteRepository->getRechargeAmountByIds([$parent['id']], $selfParams);
|
|
|
|
|
|
|
|
|
|
$records[] = [
|
|
|
|
|
'id' => $parent['id'],
|
|
|
|
|
'account' => $parent['account'],
|
|
|
|
|
'real_name' => $parent['real_name'],
|
|
|
|
|
'level' => $parent['level'],
|
|
|
|
|
'create_role_count' => $selfCreateRoleCountList[$promote['id']],
|
|
|
|
|
'create_role_user_count' => $selfCreateRoleUserCountList[$promote['id']],
|
|
|
|
|
'new_create_role_user_count' => $selfNewCreateRoleUserCountList[$promote['id']],
|
|
|
|
|
// 'new_create_role_device_count' => $selfNewCreateRoleDeviceCountList[$promote['id']],
|
|
|
|
|
'new_create_role_ip_count' => $selfNewCreateRoleIpCountList[$promote['id']],
|
|
|
|
|
'login_user_count' => $selfLoginUserCountList[$promote['id']],
|
|
|
|
|
'recharge_count' => $selfRechargeCountList[$promote['id']],
|
|
|
|
|
'recharge_user_count' => $selfRechargeUserCountList[$promote['id']],
|
|
|
|
|
'recharge_amount' => $selfRechargeAmountList[$promote['id']]['ban_coin'] + $rechargeAmountList[$promote['id']]['coin'] + $rechargeAmountList[$promote['id']]['cash'],
|
|
|
|
|
'recharge_by_ban_coin' => $selfRechargeAmountList[$promote['id']]['ban_coin'],
|
|
|
|
|
'recharge_by_coin' => $selfRechargeAmountList[$promote['id']]['coin'],
|
|
|
|
|
'recharge_by_cash' => $selfRechargeAmountList[$promote['id']]['cash'],
|
|
|
|
|
'create_role_count' => $selfCreateRoleCountList[$parent['id']],
|
|
|
|
|
'create_role_user_count' => $selfCreateRoleUserCountList[$parent['id']],
|
|
|
|
|
'new_create_role_user_count' => $selfNewCreateRoleUserCountList[$parent['id']],
|
|
|
|
|
// 'new_create_role_device_count' => $selfNewCreateRoleDeviceCountList[$parent['id']],
|
|
|
|
|
'new_create_role_ip_count' => $selfNewCreateRoleIpCountList[$parent['id']],
|
|
|
|
|
'login_user_count' => $selfLoginUserCountList[$parent['id']],
|
|
|
|
|
'recharge_count' => $selfRechargeCountList[$parent['id']],
|
|
|
|
|
'recharge_user_count' => $selfRechargeUserCountList[$parent['id']],
|
|
|
|
|
'recharge_amount' => $selfRechargeAmountList[$parent['id']]['ban_coin'] + $rechargeAmountList[$parent['id']]['coin'] + $rechargeAmountList[$parent['id']]['cash'],
|
|
|
|
|
'recharge_by_ban_coin' => $selfRechargeAmountList[$parent['id']]['ban_coin'],
|
|
|
|
|
'recharge_by_coin' => $selfRechargeAmountList[$parent['id']]['coin'],
|
|
|
|
|
'recharge_by_cash' => $selfRechargeAmountList[$parent['id']]['cash'],
|
|
|
|
|
'current_display' => $currentDisplay,
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
@ -2134,6 +2070,7 @@ class QueryController extends BaseController
|
|
|
|
|
$this->assign('parentid', $parentId);
|
|
|
|
|
$this->assign('count', $count);
|
|
|
|
|
$this->assign('timeout', $timeout);
|
|
|
|
|
$this->assign('time',$defaultTime);
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|