推广平台->数据管理->充值玩家|团队/推广员业绩--检索bug修复

master
chenxiaojun 5 years ago
commit 41e976e9da

@ -1745,8 +1745,10 @@ class QueryController extends BaseController
$map = ['uc.promote_id' => ['in', $ids]]; $map = ['uc.promote_id' => ['in', $ids]];
$subMap = ['promote_id' => ['in', $ids]]; $subMap = ['promote_id' => ['in', $ids]];
if ($relationGameId != 0) { if ($relationGameId != 0 || $sdkVersion != 0) {
$gameMap['relation_game_id'] = $relationGameId; if ($relationGameId != 0) {
$gameMap['relation_game_id'] = $relationGameId;
}
if ($sdkVersion != 0) { if ($sdkVersion != 0) {
$gameMap['sdk_version'] = $sdkVersion; $gameMap['sdk_version'] = $sdkVersion;
} }
@ -2000,9 +2002,11 @@ class QueryController extends BaseController
'isContainSubs' => true, 'isContainSubs' => true,
'basicPromotes' => $basicPromotes, 'basicPromotes' => $basicPromotes,
]; ];
if ($relationGameId > 0) { if ($relationGameId != 0 || $sdkVersion != 0) {
$gameMap['relation_game_id'] = $relationGameId; if ($relationGameId != 0) {
if ($sdkVersion > 0) { $gameMap['relation_game_id'] = $relationGameId;
}
if ($sdkVersion != 0) {
$gameMap['sdk_version'] = $sdkVersion; $gameMap['sdk_version'] = $sdkVersion;
} }
$gameId = M('game', 'tab_')->where($gameMap)->getField('id', true); $gameId = M('game', 'tab_')->where($gameMap)->getField('id', true);

Loading…
Cancel
Save