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

master
chenxiaojun 5 years ago
parent f53449ed52
commit 611d13c1c6

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

Loading…
Cancel
Save