|
|
@ -2998,7 +2998,7 @@ public function iosDetailExcelInfo($id,$map) {
|
|
|
|
public function playactionExcelInfo($id,$map) {
|
|
|
|
public function playactionExcelInfo($id,$map) {
|
|
|
|
$xlsName = "玩家行为日志";
|
|
|
|
$xlsName = "玩家行为日志";
|
|
|
|
$xlsCell = array(
|
|
|
|
$xlsCell = array(
|
|
|
|
'cp订单号',
|
|
|
|
// 'cp订单号',
|
|
|
|
'充值时间',
|
|
|
|
'充值时间',
|
|
|
|
'玩家账号',
|
|
|
|
'玩家账号',
|
|
|
|
'游戏名称',
|
|
|
|
'游戏名称',
|
|
|
@ -3009,7 +3009,7 @@ public function iosDetailExcelInfo($id,$map) {
|
|
|
|
'订单金额'
|
|
|
|
'订单金额'
|
|
|
|
);
|
|
|
|
);
|
|
|
|
$model = M('pay_info','tab_');
|
|
|
|
$model = M('pay_info','tab_');
|
|
|
|
$data1 = $model->field('id')->where($map)->select();
|
|
|
|
$count = M('pay_info','tab_')->field('id')->where($map)->count();
|
|
|
|
$csvFileName = $xlsName.'.csv';
|
|
|
|
$csvFileName = $xlsName.'.csv';
|
|
|
|
//设置好告诉浏览器要下载excel文件的headers
|
|
|
|
//设置好告诉浏览器要下载excel文件的headers
|
|
|
|
header('Content-Description: File Transfer');
|
|
|
|
header('Content-Description: File Transfer');
|
|
|
@ -3022,7 +3022,7 @@ public function iosDetailExcelInfo($id,$map) {
|
|
|
|
mb_convert_variables('gb2312', 'UTF-8', $xlsCell);
|
|
|
|
mb_convert_variables('gb2312', 'UTF-8', $xlsCell);
|
|
|
|
fputcsv($fp, $xlsCell);//将数据格式化为CSV格式并写入到output流中
|
|
|
|
fputcsv($fp, $xlsCell);//将数据格式化为CSV格式并写入到output流中
|
|
|
|
$accessNum = '100000';//从数据库获取总量,假设是十万
|
|
|
|
$accessNum = '100000';//从数据库获取总量,假设是十万
|
|
|
|
$accessNum = count($data1)?:0 ;
|
|
|
|
$accessNum = $count ?? 0;
|
|
|
|
$perSize = 5000;//每次查询的条数
|
|
|
|
$perSize = 5000;//每次查询的条数
|
|
|
|
$pages = ceil($accessNum / $perSize);
|
|
|
|
$pages = ceil($accessNum / $perSize);
|
|
|
|
for($i = 1; $i <= $pages; $i++) {
|
|
|
|
for($i = 1; $i <= $pages; $i++) {
|
|
|
@ -3035,10 +3035,10 @@ public function iosDetailExcelInfo($id,$map) {
|
|
|
|
$gameId = $v['game_id'];
|
|
|
|
$gameId = $v['game_id'];
|
|
|
|
$serverInfo = M('server','tab_')->field('server_name')->where(['server_num'=>$serverId,'game_id'=>$gameId])->find();
|
|
|
|
$serverInfo = M('server','tab_')->field('server_name')->where(['server_num'=>$serverId,'game_id'=>$gameId])->find();
|
|
|
|
$v['promote_id']= $promoteInfo['account'];
|
|
|
|
$v['promote_id']= $promoteInfo['account'];
|
|
|
|
if(empty($v['extend'])) {
|
|
|
|
/* if(empty($v['extend'])) {
|
|
|
|
$v['extend'] = $v['order_id'];
|
|
|
|
$v['extend'] = $v['order_id'];
|
|
|
|
}
|
|
|
|
} */
|
|
|
|
$csvData['extend'] = $this->encryption($v['extend']);
|
|
|
|
// $csvData['extend'] = $this->encryption($v['extend']);
|
|
|
|
$csvData['create_time'] = $v['create_time'];
|
|
|
|
$csvData['create_time'] = $v['create_time'];
|
|
|
|
$csvData['user_account'] = $this->encryption($v['user_account']);
|
|
|
|
$csvData['user_account'] = $this->encryption($v['user_account']);
|
|
|
|
$csvData['game_name'] = $v['game_name'];
|
|
|
|
$csvData['game_name'] = $v['game_name'];
|
|
|
|