|
|
|
@ -46,8 +46,13 @@ class GameController extends BaseController
|
|
|
|
|
$promoteId = $loginPromote['id'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$promote = $loginPromote;
|
|
|
|
|
if ($promoteId > 0) {
|
|
|
|
|
$promote = M('promote', 'tab_')->where(['id' => $promoteId])->find();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
|
$gameIds = $promoteService->getVisibleGameIds($loginPromote);
|
|
|
|
|
$gameIds = $promoteService->getVisibleGameIds($promote);
|
|
|
|
|
if ($baseGameId > 0) {
|
|
|
|
|
$baseGame = M('base_game', 'tab_')->where(['id' => $baseGameId])->find();
|
|
|
|
|
$gameIds = [];
|
|
|
|
|