游戏game_id

master
sunke 5 years ago
parent a6d0bfc2d9
commit 0644f66520

@ -1295,13 +1295,14 @@ class DownloadController extends BaseController {
$map = ['promote_id' => ['in', $ids]]; $map = ['promote_id' => ['in', $ids]];
$subMap = ['promote_id' => ['in', $ids]]; $subMap = ['promote_id' => ['in', $ids]];
if ($gameId != 0) { if ($gameId != 0 || $sdkVersion != 0) {
$gameMap['relation_game_id'] = $gameId; if ($gameId != 0) {
$gameMap['relation_game_id'] = $gameId;
}
if ($sdkVersion != 0) { if ($sdkVersion != 0) {
$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);
$map['game_id'] = ['in', $gameId1]; $map['game_id'] = ['in', $gameId1];
$subMap['game_id'] = ['in', $gameId1]; $subMap['game_id'] = ['in', $gameId1];
} }
@ -1416,22 +1417,24 @@ class DownloadController extends BaseController {
$map['parentsinfo'] = json_encode($parent,FALSE);; $map['parentsinfo'] = json_encode($parent,FALSE);;
$map['currentDisplay'] = $currentDisplay; $map['currentDisplay'] = $currentDisplay;
$map['ids'] = $ids; $map['ids'] = $ids;
if ($gameId > 0) { if ($gameId != 0 || $sdkVersion != 0) {
$gameMap['relation_game_id'] = $gameId; if ($gameId != 0) {
if ($sdkVersion > 0) { $gameMap['relation_game_id'] = $gameId;
}
if ($sdkVersion != 0) {
$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);
$params['game_id'] = ['in', $gameId1]; $map['game_id'] = ['in', $gameId1];
} }
if ($serverId > 0) { if ($serverId > 0) {
$params['server_id'] = $serverId; $map['server_id'] = $serverId;
} }
if ($sdkVersion > 0) { if ($sdkVersion > 0) {
$params['sdk_version'] = $sdkVersion; $map['sdk_version'] = $sdkVersion;
} }
if ($status > 0) { if ($status > 0) {
$params['lock_status'] = $status; $map['lock_status'] = $status;
} }
list($beginTime, $endTime) = $this->getBetweenTime($time); list($beginTime, $endTime) = $this->getBetweenTime($time);
$map['begin_time'] = $beginTime; $map['begin_time'] = $beginTime;

Loading…
Cancel
Save