|
|
|
@ -154,8 +154,8 @@ class HomeController extends Controller
|
|
|
|
|
$this->error('该链接已被禁');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($code != '') {
|
|
|
|
|
$applyService = new ApplyService();
|
|
|
|
|
if ($code != '') {
|
|
|
|
|
$data = $applyService->decodeApplyCode($code);
|
|
|
|
|
$result = $applyService->checkApplyCode($data, ApplyService::ENCRYPT_TYPE_LANDING_PAGE);
|
|
|
|
|
if (!$result['status']) {
|
|
|
|
@ -194,6 +194,11 @@ class HomeController extends Controller
|
|
|
|
|
$map = ['id' => intval($gameId)];
|
|
|
|
|
$game = M('game', 'tab_')->field($columns)->where($map)->find();
|
|
|
|
|
|
|
|
|
|
$promote = M('promote', 'tab_')->field(['id', 'parent_id', 'chain', 'level'])->where(['id' => $promoteId])->find();
|
|
|
|
|
if (!$applyService->checkSociatyPerm($promote, $game)) {
|
|
|
|
|
$this->error('该链接已经停止使用');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($game['sdk_version'] == 1 && $isIOS) {
|
|
|
|
|
$map = [];
|
|
|
|
|
$map['relation_game_id'] = $game['relation_game_id'];
|
|
|
|
@ -208,6 +213,9 @@ class HomeController extends Controller
|
|
|
|
|
$apply = M('apply', 'tab_')->field(['game_id', 'enable_status', 'promote_id'])
|
|
|
|
|
->where(['promote_id' => $promoteId, 'game_id' => $game['id']])
|
|
|
|
|
->find();
|
|
|
|
|
if (!$apply) {
|
|
|
|
|
$this->error('该链接已经停止使用');
|
|
|
|
|
}
|
|
|
|
|
$game['icon'] = get_cover($game['icon'], 'path');
|
|
|
|
|
|
|
|
|
|
$gameSource = M('GameSource', 'tab_')->field(['create_time', 'org_plist_url', 'is_new_sdk'])->where(array('game_id' => $game['id']))->find();
|
|
|
|
|