@ -628,6 +628,10 @@ class FinancePromoteController extends AdminController
$map['pay_order_number'] = $_REQUEST['pay_order_number'];
$map['pay_order_number'] = $_REQUEST['pay_order_number'];
}
}
if (!empty($_REQUEST['admin_id'])) {
$map['market_admin_id'] = $_REQUEST['admin_id'];
}
/* if (!empty(I('develop_type'))) {
/* if (!empty(I('develop_type'))) {
$map['company.develop_type'] = I('develop_type');
$map['company.develop_type'] = I('develop_type');
}
}
@ -675,7 +679,7 @@ class FinancePromoteController extends AdminController
if (!empty(I('user_nickname'))) {
if (!empty(I('user_nickname'))) {
$map['game_player_name'] = array('like',I("user_nickname").'%');
$map['game_player_name'] = array('like',I("user_nickname").'%');
}
}
$field = "pay_order_number,FROM_UNIXTIME(pay_time) as pay_time,user_account,user_nickname,game_name,sdk_version,promote_account,spend_ip,server_name,game_player_name,pay_amount,cost,pay_way";
$field = "pay_order_number,FROM_UNIXTIME(pay_time) as pay_time,user_account,user_nickname,game_name,sdk_version,promote_account,spend_ip,server_name,game_player_name,pay_amount,cost,pay_way,market_admin_id ";
$group = "";
$group = "";
$order = "pay_time DESC";
$order = "pay_time DESC";
if(isset($_REQUEST['export'])){
if(isset($_REQUEST['export'])){
@ -683,16 +687,23 @@ class FinancePromoteController extends AdminController
}else {
}else {
$data = D('spend')->getSpendData($map,$field,$group,$order,$page,$row);
$data = D('spend')->getSpendData($map,$field,$group,$order,$page,$row);
}
}
$marketAdmins = [];
if (count($data) > 0) {
$marketAdmins = getAdminUsernameList(array_column($data, 'market_admin_id'));
}
foreach($data as $key => $value) {
foreach($data as $key => $value) {
$data[$key]['pay_way'] = getPayType($value['pay_way']);
$data[$key]['pay_way'] = getPayType($value['pay_way']);
$data[$key]['game_name'] =clearGameNameType($data[$key]['game_name']);
$data[$key]['game_name'] =clearGameNameType($data[$key]['game_name']);
$data[$key]['sdk_version'] =getGameTypeName($data[$key]['sdk_version']);
$data[$key]['sdk_version'] =getGameTypeName($data[$key]['sdk_version']);
$data[$key]['market_admin_username'] = $marketAdmins[$value['market_admin_id']] ?? '无';
if (isset($_REQUEST['export'])) {
if (isset($_REQUEST['export'])) {
checkEncryptionAuth($data[$key]['user_account'],'gameStatisticsDetail');
checkEncryptionAuth($data[$key]['user_account'],'gameStatisticsDetail');
}
}
}
}
if (isset($_REQUEST['export'])) {
if (isset($_REQUEST['export'])) {
$GetData = $_GET;
$GetData = $_GET;