平台币充值区服隐藏

master
sunke 5 years ago
parent 3151e8b456
commit 1cd4e94840

@ -1909,9 +1909,14 @@ class DownloadController extends BaseController {
foreach($data as $key => $v) { foreach($data as $key => $v) {
$v['create_time'] = date('Y-m-d H:i:s',$v['create_time']); $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(); $promoteInfo = M('promote','tab_')->field("account")->where(['id' => intval($v['promote_id'])])->find();
$serverId = $v['server_id']; if($v['server_id'] != 0) {
$serverId1 = $v['server_id'];
$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'=>$serverId1,'game_id'=>$gameId])->find();
$servername = $serverInfo['server_name'];
}else {
$servername = "";
}
$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'];
@ -1921,7 +1926,7 @@ class DownloadController extends BaseController {
$csvData['user_account'] = $v['user_account']; $csvData['user_account'] = $v['user_account'];
$csvData['game_name'] = $v['game_name']; $csvData['game_name'] = $v['game_name'];
$csvData['promote_id'] = $v['promote_id']; $csvData['promote_id'] = $v['promote_id'];
$csvData['server_name'] = $serverInfo['server_name']; $csvData['server_name'] = $servername;
$csvData['user_id'] = $v['game_player_id']; $csvData['user_id'] = $v['game_player_id'];
$csvData['game_player_name'] = $v['game_player_name']; $csvData['game_player_name'] = $v['game_player_name'];
$csvData['price'] = $v['price']; $csvData['price'] = $v['price'];

@ -80,10 +80,15 @@ class PlayersController extends BaseController {
$rs[$key]['extend'] = encryption($v['extend']); $rs[$key]['extend'] = encryption($v['extend']);
$rs[$key]['create_time'] = date('Y-m-d H:i:s',$v['create_time']); $rs[$key]['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(); $promoteInfo = M('promote','tab_')->field("account")->where(['id' => intval($v['promote_id'])])->find();
if($v['server_id'] != 0) {
$serverId1 = $v['server_id']; $serverId1 = $v['server_id'];
$gameId = $v['game_id']; $gameId = $v['game_id'];
$serverInfo = M('server','tab_')->field('server_name')->where(['server_num'=>$serverId1,'game_id'=>$gameId])->find(); $serverInfo = M('server','tab_')->field('server_name')->where(['server_num'=>$serverId1,'game_id'=>$gameId])->find();
$rs[$key]['server_name'] = $serverInfo['server_name']; $rs[$key]['server_name'] = $serverInfo['server_name'];
}else {
$rs[$key]['server_name'] = "";
}
$rs[$key]['promote_id']= $promoteInfo['account']; $rs[$key]['promote_id']= $promoteInfo['account'];
} }

Loading…
Cancel
Save