|
|
|
@ -1909,9 +1909,14 @@ class DownloadController extends BaseController {
|
|
|
|
|
foreach($data as $key => $v) {
|
|
|
|
|
$v['create_time'] = date('Y-m-d H:i:s',$v['create_time']);
|
|
|
|
|
$promoteInfo = M('promote','tab_')->field("account")->where(['id' => intval($v['promote_id'])])->find();
|
|
|
|
|
$serverId = $v['server_id'];
|
|
|
|
|
$gameId = $v['game_id'];
|
|
|
|
|
$serverInfo = M('server','tab_')->field('server_name')->where(['server_num'=>$serverId,'game_id'=>$gameId])->find();
|
|
|
|
|
if($v['server_id'] != 0) {
|
|
|
|
|
$serverId1 = $v['server_id'];
|
|
|
|
|
$gameId = $v['game_id'];
|
|
|
|
|
$serverInfo = M('server','tab_')->field('server_name')->where(['server_num'=>$serverId1,'game_id'=>$gameId])->find();
|
|
|
|
|
$servername = $serverInfo['server_name'];
|
|
|
|
|
}else {
|
|
|
|
|
$servername = "";
|
|
|
|
|
}
|
|
|
|
|
$v['promote_id']= $promoteInfo['account'];
|
|
|
|
|
if(empty($v['extend'])) {
|
|
|
|
|
$v['extend'] = $v['order_id'];
|
|
|
|
@ -1921,7 +1926,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
$csvData['user_account'] = $v['user_account'];
|
|
|
|
|
$csvData['game_name'] = $v['game_name'];
|
|
|
|
|
$csvData['promote_id'] = $v['promote_id'];
|
|
|
|
|
$csvData['server_name'] = $serverInfo['server_name'];
|
|
|
|
|
$csvData['server_name'] = $servername;
|
|
|
|
|
$csvData['user_id'] = $v['game_player_id'];
|
|
|
|
|
$csvData['game_player_name'] = $v['game_player_name'];
|
|
|
|
|
$csvData['price'] = $v['price'];
|
|
|
|
@ -1975,7 +1980,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
->field('account,device_number,promote_account,register_time,register_ip,login_time,login_ip')
|
|
|
|
|
->where($map)
|
|
|
|
|
->limit(($i-1)*$perSize ,$perSize)
|
|
|
|
|
->order('tab_user.id desc')
|
|
|
|
|
->order('tab_user.id desc')
|
|
|
|
|
->select();
|
|
|
|
|
foreach($data as $value1) {
|
|
|
|
|
$csvData['account'] = $this->encryption($value1['account']);
|
|
|
|
|