|
|
|
@ -160,6 +160,7 @@ class HomeController extends Controller
|
|
|
|
|
$map = ['id' => intval($data['game_id'])];
|
|
|
|
|
|
|
|
|
|
$game = M('game', 'tab_')->field($columns)->where($map)->find();
|
|
|
|
|
|
|
|
|
|
if ($game['sdk_version'] == 1 && $isIOS) {
|
|
|
|
|
$map['relation_game_id'] = $game['relation_game_id'];
|
|
|
|
|
$map['sdk_version'] = 2;
|
|
|
|
@ -170,8 +171,8 @@ class HomeController extends Controller
|
|
|
|
|
$game = M('game', 'tab_')->field($columns)->where($map)->find();
|
|
|
|
|
}
|
|
|
|
|
$apply = M('apply', 'tab_')->field(['game_id', 'enable_status', 'promote_id'])
|
|
|
|
|
->where(['promote_id' => $data['promote_id'], 'game_id' => $game['id']])
|
|
|
|
|
->find();
|
|
|
|
|
->where(['promote_id' => $data['promote_id'], 'game_id' => $game['id']])
|
|
|
|
|
->find();
|
|
|
|
|
$game['icon'] = get_cover($game['icon'], 'path');
|
|
|
|
|
|
|
|
|
|
$imageIds = explode(',', $game['flooring_page_imgs']) ?? [];
|
|
|
|
@ -183,7 +184,7 @@ class HomeController extends Controller
|
|
|
|
|
|
|
|
|
|
$downloadUrl = '';
|
|
|
|
|
if ($isIOS13) {
|
|
|
|
|
$gameSource = M('GameSource', 'tab_')->where(array('game_id' => $gameId))->getField('org_plist_url');
|
|
|
|
|
$gameSource = M('GameSource', 'tab_')->where(array('game_id' => $game['id']))->getField('org_plist_url');
|
|
|
|
|
$downloadUrl = 'itms-services://?action=download-manifest&url=' . Request::getHost() . ltrim($gameSource['org_plist_url'], '.');
|
|
|
|
|
} else {
|
|
|
|
|
$applyService = new ApplyService();
|
|
|
|
|