|
|
|
@ -56,6 +56,7 @@ class ExportController extends Controller
|
|
|
|
|
switch ($id) {
|
|
|
|
|
case 1:
|
|
|
|
|
$showMarketAdmin = session('user_auth')['show_market_admin'];
|
|
|
|
|
$showPromote = session('user_auth')['show_promote'];
|
|
|
|
|
$headers = [
|
|
|
|
|
'create_time' => '创建时间',
|
|
|
|
|
'user_account' => '玩家账号',
|
|
|
|
@ -70,11 +71,14 @@ class ExportController extends Controller
|
|
|
|
|
'play_time' => '最后登录时间',
|
|
|
|
|
'play_ip' => '最后登录ip',
|
|
|
|
|
];
|
|
|
|
|
$xlsCell = array_values($headers);
|
|
|
|
|
$fields = array_keys($headers);
|
|
|
|
|
if ($showMarketAdmin == 0) {
|
|
|
|
|
unset($headers['promote_id']);
|
|
|
|
|
}
|
|
|
|
|
if ($showPromote == 0) {
|
|
|
|
|
unset($headers['promote_account']);
|
|
|
|
|
}
|
|
|
|
|
$xlsCell = array_values($headers);
|
|
|
|
|
$fields = array_keys($headers);
|
|
|
|
|
if (isset($_REQUEST['game_name'])) {
|
|
|
|
|
$map['game_name'] = ['like', trim($_REQUEST['game_name'])."%"];
|
|
|
|
|
unset($_REQUEST['game_name']);
|
|
|
|
@ -144,7 +148,6 @@ class ExportController extends Controller
|
|
|
|
|
$pages = ceil($accessNum / $perSize);
|
|
|
|
|
$lastId = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for($i = 1; $i <= $pages; $i++) {
|
|
|
|
|
|
|
|
|
|
$xlsData = M('user_play_info', 'tab_')
|
|
|
|
@ -158,7 +161,9 @@ class ExportController extends Controller
|
|
|
|
|
$adminList = getMarketAdminsByPromoteIds(array_column($xlsData, 'promote_id'));
|
|
|
|
|
}
|
|
|
|
|
foreach($xlsData as $value) {
|
|
|
|
|
($value['promote_account']=='官方渠道'||$value['promote_account']=='自然注册')?($value['promote_account']=C('OFFICIEL_CHANNEL')):'';
|
|
|
|
|
if ($showPromote == 1) {
|
|
|
|
|
($value['promote_account']=='官方渠道'||$value['promote_account']=='自然注册')?($value['promote_account']=C('OFFICIEL_CHANNEL')):'';
|
|
|
|
|
}
|
|
|
|
|
if ($showMarketAdmin == 1) {
|
|
|
|
|
$value['promote_id'] = isset($adminList[$value['promote_id']]) && $adminList[$value['promote_id']]['admin'] ? $adminList[$value['promote_id']]['admin']['username'] : '无';
|
|
|
|
|
}
|
|
|
|
@ -1199,6 +1204,7 @@ class ExportController extends Controller
|
|
|
|
|
$total=$total?$total:0;
|
|
|
|
|
|
|
|
|
|
$showMarketAdmin = session('user_auth')['show_market_admin'];
|
|
|
|
|
$showPromote = session('user_auth')['show_promote'];
|
|
|
|
|
|
|
|
|
|
$headers = [
|
|
|
|
|
'pay_order_number' => '支付订单号',
|
|
|
|
@ -1227,6 +1233,9 @@ class ExportController extends Controller
|
|
|
|
|
if ($showMarketAdmin == 0) {
|
|
|
|
|
unset($headers['market_admin_id']);
|
|
|
|
|
}
|
|
|
|
|
if ($showPromote == 0) {
|
|
|
|
|
unset($headers['promote_account']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$xlsCell = array_values($headers);
|
|
|
|
|
$fields = array_keys($headers);
|
|
|
|
@ -1277,8 +1286,10 @@ class ExportController extends Controller
|
|
|
|
|
}
|
|
|
|
|
$value['merchant_id'] = getMerchantName($value['merchant_id']);
|
|
|
|
|
checkEncryptionAuth($value['user_account'],'spend_lists');
|
|
|
|
|
// $value['user_account'] = encryption($value['user_account']);
|
|
|
|
|
($value['promote_account']=='官方渠道'||$value['promote_account']=='自然注册')?($value['promote_account']=C('OFFICIEL_CHANNEL')):'';
|
|
|
|
|
|
|
|
|
|
if ($showPromote == 1) {
|
|
|
|
|
($value['promote_account']=='官方渠道'||$value['promote_account']=='自然注册')?($value['promote_account']=C('OFFICIEL_CHANNEL')):'';
|
|
|
|
|
}
|
|
|
|
|
$value['extend'] = $value['extend'].'`';
|
|
|
|
|
$value['pay_way'] = get_pay_way($value['pay_way']);
|
|
|
|
|
$value['pay_status'] = get_info_status($value['pay_status'],9);
|
|
|
|
@ -4169,6 +4180,16 @@ class ExportController extends Controller
|
|
|
|
|
['retention_day30', '30日留存'],
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
if (session('user_auth')['show_promote'] == 0) {
|
|
|
|
|
foreach ($xlsCell as $key => $item) {
|
|
|
|
|
if ($item[0] == 'promote_name') {
|
|
|
|
|
unset($xlsCell[$key]);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$xlsCell = array_values($xlsCell);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$GetData = $_GET;
|
|
|
|
|
unset($GetData['xlsname']);
|
|
|
|
|
|
|
|
|
|