|
|
|
@ -2078,11 +2078,19 @@ class ExportController extends Controller
|
|
|
|
|
array('device_number', '设备号'),
|
|
|
|
|
array('game_name', '游戏'),
|
|
|
|
|
array('pay_time', '购买时间'),
|
|
|
|
|
array('super_money', '超级签金额'),
|
|
|
|
|
array('pay_way', '支付方式'),
|
|
|
|
|
array('pay_price', '超级签金额'),
|
|
|
|
|
);
|
|
|
|
|
$xlsData = M('game_supersign', 'tab_')->field('tab_game_supersign.id,tab_game_supersign.order_id,tab_user.account,tab_user.promote_account,tab_user.device_number,tab_game.game_name,tab_game_supersign.pay_time')->join('tab_user on tab_game_supersign.user_id = tab_user.id')->join('tab_game on tab_game_supersign.game_id = tab_game.id')->where($map)->order('id DESC')->select();
|
|
|
|
|
$xlsData = M('game_supersign', 'tab_')->field('tab_game_supersign.id,tab_game_supersign.pay_price,tab_game_supersign.pay_way,tab_game_supersign.order_id,tab_user.account,tab_user.promote_account,tab_user.device_number,tab_game.game_name,tab_game_supersign.pay_time')->join('tab_user on tab_game_supersign.user_id = tab_user.id')->join('tab_game on tab_game_supersign.game_id = tab_game.id')->where($map)->order('id DESC')->select();
|
|
|
|
|
foreach($xlsData as $k => $v) {
|
|
|
|
|
$xlsData[$k]['pay_time'] = date('Y-m-d H:i:s',$v['pay_time']);
|
|
|
|
|
if($v['pay_way'] == 0) {
|
|
|
|
|
$xlsData[$k]['pay_way'] = '未知';
|
|
|
|
|
}elseif ($v['pay_way'] == 1) {
|
|
|
|
|
$xlsData[$k]['pay_way'] = '支付宝';
|
|
|
|
|
}elseif ($v['pay_way'] == 2) {
|
|
|
|
|
$xlsData[$k]['pay_way'] = '微信';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 24:
|
|
|
|
@ -2451,8 +2459,8 @@ class ExportController extends Controller
|
|
|
|
|
->select();
|
|
|
|
|
// dd($data);
|
|
|
|
|
$map2 = array();
|
|
|
|
|
$map2['fgame_id'] = array('egt', 0);
|
|
|
|
|
$map2['puid'] = 0;
|
|
|
|
|
$map['fgame_id'] = array('egt', 0);
|
|
|
|
|
$map['puid'] = 0;
|
|
|
|
|
setPowerPromoteIds($map2);
|
|
|
|
|
|
|
|
|
|
$data2 = $user->field('fgame_id,count(IF(register_time ' . $today . ',1,null)) as today,
|
|
|
|
|