|
|
@ -92,6 +92,10 @@ class ApplyController extends BaseController
|
|
|
|
|
|
|
|
|
|
|
|
$map['tab_game.sdk_version'] = $type;
|
|
|
|
$map['tab_game.sdk_version'] = $type;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$applyService = new ApplyService();
|
|
|
|
|
|
|
|
$tempIds = $applyService->getSociatyGameIds($loginPromote);
|
|
|
|
|
|
|
|
$gameIdList = array_intersect($gameIdList, $tempIds);
|
|
|
|
|
|
|
|
|
|
|
|
if (count($gameIdList) > 0) {
|
|
|
|
if (count($gameIdList) > 0) {
|
|
|
|
$gameIds = implode(',', $gameIdList);
|
|
|
|
$gameIds = implode(',', $gameIdList);
|
|
|
|
|
|
|
|
|
|
|
@ -115,6 +119,10 @@ class ApplyController extends BaseController
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$gameIdList = M('Game', 'tab_')->group('relation_game_id')->having('count(id) = 2')->getField('id', true);
|
|
|
|
$gameIdList = M('Game', 'tab_')->group('relation_game_id')->having('count(id) = 2')->getField('id', true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$applyService = new ApplyService();
|
|
|
|
|
|
|
|
$tempIds = $applyService->getSociatyGameIds($loginPromote);
|
|
|
|
|
|
|
|
$gameIdList = array_intersect($gameIdList, $tempIds);
|
|
|
|
|
|
|
|
|
|
|
|
if (count($gameIdList) > 0) {
|
|
|
|
if (count($gameIdList) > 0) {
|
|
|
|
$gameIds = implode(',', $gameIdList);
|
|
|
|
$gameIds = implode(',', $gameIdList);
|
|
|
|
$map['tab_game.id'] = ['in', $gameIds];
|
|
|
|
$map['tab_game.id'] = ['in', $gameIds];
|
|
|
|