|
|
|
@ -95,7 +95,7 @@ class PackageController extends Controller
|
|
|
|
|
$packageUrl = $sdkVersion == 1 ? $apply['pack_url'] : $apply['plist_url'];
|
|
|
|
|
|
|
|
|
|
$apply = M('apply', 'tab_')->where(['promote_id' => $promoteId, 'game_id' => $gameId])->find();
|
|
|
|
|
$url = $applyService->getLandingPageUrl($apply);
|
|
|
|
|
$url = $applyService->getLandingPageUrl($apply, $code);
|
|
|
|
|
|
|
|
|
|
M('game','tab_')->where(['id' => $game['id']])->setInc('dow_num');
|
|
|
|
|
|
|
|
|
@ -110,7 +110,7 @@ class PackageController extends Controller
|
|
|
|
|
M('user_action_log', 'tab_')->data($log)->add();
|
|
|
|
|
|
|
|
|
|
$downloadDomain = $applyService->getDownloadDomain();
|
|
|
|
|
if (Request::isIOS() || Request::isIPadOS() || $force == 'ios') {
|
|
|
|
|
if ($sdkVersion == 2) {
|
|
|
|
|
$packageDownloadLogService = new PackageDownloadLogService();
|
|
|
|
|
$packageDownloadLogService->add([
|
|
|
|
|
'user_id' => 0,
|
|
|
|
|