|
|
@ -1188,6 +1188,9 @@ class DownloadController extends BaseController {
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
|
|
|
|
if(empty($gameId1)) {
|
|
|
|
|
|
|
|
$gameId1 = [-100];
|
|
|
|
|
|
|
|
}
|
|
|
|
$map['game_id'] = ['in', $gameId1];
|
|
|
|
$map['game_id'] = ['in', $gameId1];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
empty(I('server_id')) || $map['tab_pay_info.server_id'] = I('server_id');
|
|
|
|
empty(I('server_id')) || $map['tab_pay_info.server_id'] = I('server_id');
|
|
|
@ -1382,6 +1385,9 @@ class DownloadController extends BaseController {
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
|
|
|
|
if(empty($gameId1)) {
|
|
|
|
|
|
|
|
$gameId1 = [-100];
|
|
|
|
|
|
|
|
}
|
|
|
|
$map['game_id'] = ['in', $gameId1];
|
|
|
|
$map['game_id'] = ['in', $gameId1];
|
|
|
|
$subMap['game_id'] = ['in', $gameId1];
|
|
|
|
$subMap['game_id'] = ['in', $gameId1];
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1504,6 +1510,9 @@ class DownloadController extends BaseController {
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
|
|
|
|
if(empty($gameId1)) {
|
|
|
|
|
|
|
|
$gameId1 = [-100];
|
|
|
|
|
|
|
|
}
|
|
|
|
$map['game_id'] = ['in', $gameId1];
|
|
|
|
$map['game_id'] = ['in', $gameId1];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($serverId > 0) {
|
|
|
|
if ($serverId > 0) {
|
|
|
@ -1603,6 +1612,9 @@ class DownloadController extends BaseController {
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
|
|
|
|
if(empty($gameId1)) {
|
|
|
|
|
|
|
|
$gameId1 = [-100];
|
|
|
|
|
|
|
|
}
|
|
|
|
$map['game_id'] = ['in', $gameId1];
|
|
|
|
$map['game_id'] = ['in', $gameId1];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($serverId != 0) {
|
|
|
|
if ($serverId != 0) {
|
|
|
@ -1896,11 +1908,11 @@ class DownloadController extends BaseController {
|
|
|
|
->limit(($i-1)*$perSize ,$perSize)->select();
|
|
|
|
->limit(($i-1)*$perSize ,$perSize)->select();
|
|
|
|
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("nickname")->where(['id' => intval($v['promote_id'])])->find();
|
|
|
|
$promoteInfo = M('promote','tab_')->field("account")->where(['id' => intval($v['promote_id'])])->find();
|
|
|
|
$serverId = $v['server_id'];
|
|
|
|
$serverId = $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'=>$serverId,'game_id'=>$gameId])->find();
|
|
|
|
$v['promote_id']= $promoteInfo['nickname'];
|
|
|
|
$v['promote_id']= $promoteInfo['account'];
|
|
|
|
$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'] = $v['user_account'];
|
|
|
|
$csvData['user_account'] = $v['user_account'];
|
|
|
|