Merge pull request '有害' (#369) from hotfix/remove_promote_package into release

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/369
master
廖金灵 4 years ago
commit 58b8918e18

@ -87,11 +87,13 @@ class ApplyService {
return $host . '/index.php?s=/Home/Package/download/code/' . $code;
}
public function getLandingPageUrl($apply)
public function getLandingPageUrl($apply, $code = null)
{
$host = $this->getDownloadDomain();
$host = $host ? $host : Request::getHost();
$code = $this->encodeApplyCode($apply, self::ENCRYPT_TYPE_LANDING_PAGE);
if (!$code) {
$code = $this->encodeApplyCode($apply, self::ENCRYPT_TYPE_DOWNLOAD);
}
return $host . '/index.php?s=/Home/Home/landingPage/code/' . $code;
}

@ -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,

Loading…
Cancel
Save