master
ELF 5 years ago
parent 6d44aa9a14
commit 3299266431

@ -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 = [];

Loading…
Cancel
Save