|
|
|
@ -288,10 +288,10 @@ class GameController extends BaseController
|
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
|
$gameIds = $promoteService->getVisibleGameIds($loginPromote);
|
|
|
|
|
$conditions = [];
|
|
|
|
|
if ($gameIds !== true) {
|
|
|
|
|
if ($gameIds && count($gameIds) > 0) {
|
|
|
|
|
$conditions = ['_logic' => 'or', 'android_game_id' => ['in', $gameIds], 'ios_game_id' => ['in', $gameIds]];
|
|
|
|
|
} else {
|
|
|
|
|
$conditions = '1=1';
|
|
|
|
|
$conditions = '1<>1';
|
|
|
|
|
}
|
|
|
|
|
$games = M('base_game', 'tab_')->where($conditions)->select();
|
|
|
|
|
|
|
|
|
|