游戏选择

master
sunke 5 years ago
parent 30b5e6ed46
commit b305069da9

@ -1253,7 +1253,7 @@ class DownloadController extends BaseController {
}
public function userRecharge_data_export() {
$gameId = I('game_id', 0);
$gameId = I('relation_game_id', 0);
$serverId = I('server_id', 0);
$isSelf = I('is_self', 0);
$roleName = I('role_name', '');
@ -1310,7 +1310,12 @@ class DownloadController extends BaseController {
}
if ($gameId != 0) {
$map['game_id'] = $gameId;
$gameMap['relation_game_id'] = $gameId;
if ($sdkVersion != 0) {
$gameMap['sdk_version'] = $sdkVersion;
}
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
$map['game_id'] = ['in', $gameId1];
}
if ($serverId != 0) {
$map['server_id'] = $serverId;
@ -1371,7 +1376,7 @@ class DownloadController extends BaseController {
public function achievement_data_export() {
$time = I('time', date('Y-m-d'));
$sdkVersion = I('sdk_version', 0);
$gameId = I('game_id', 0);
$gameId = I('relation_game_id', 0);
$serverId = I('server_id', 0);
$parentId = I('parent_id', 0);
$promoteId = I('promote_id', 0);
@ -1424,7 +1429,12 @@ class DownloadController extends BaseController {
$map['currentDisplay'] = $currentDisplay;
$map['ids'] = $ids;
if ($gameId > 0) {
$params['game_id'] = $gameId;
$gameMap['relation_game_id'] = $gameId;
if ($sdkVersion > 0) {
$gameMap['sdk_version'] = $sdkVersion;
}
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
$params['game_id'] = ['in', $gameId1];
}
if ($serverId > 0) {
$params['server_id'] = $serverId;
@ -1461,7 +1471,7 @@ class DownloadController extends BaseController {
}
//玩家角色
public function userRoles_data_export() {
$gameId = I('game_id', 0);
$gameId = I('relation_game_id', 0);
$serverId = I('server_id', 0);
$isSelf = I('is_self', 0);
$roleName = I('role_name', '');
@ -1517,7 +1527,12 @@ class DownloadController extends BaseController {
if ($gameId != 0) {
$map['game_id'] = $gameId;
$gameMap['relation_game_id'] = $gameId;
if ($sdkVersion != 0) {
$gameMap['sdk_version'] = $sdkVersion;
}
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
$map['game_id'] = ['in', $gameId1];
}
if ($serverId != 0) {
$map['serverId'] = $serverId;

Loading…
Cancel
Save