|
|
|
@ -79,7 +79,21 @@ class PackageController extends Controller
|
|
|
|
|
|
|
|
|
|
$packageUrl = $game['sdk_version'] == 1 ? $apply['pack_url'] : $apply['plist_url'];
|
|
|
|
|
|
|
|
|
|
$apply = M('apply', 'tab_')->where(['promote_id' => $promoteId, 'game_id' => $gameId])->find();
|
|
|
|
|
$url = $applyService->getLandingPageUrl($apply);
|
|
|
|
|
|
|
|
|
|
M('game','tab_')->where(['id' => $game['id']])->setInc('dow_num');
|
|
|
|
|
|
|
|
|
|
$log['game_id'] = $gameId;
|
|
|
|
|
$log['game_name'] = $game['game_name'];
|
|
|
|
|
$log['action'] = $url;
|
|
|
|
|
$log['type'] = 6;
|
|
|
|
|
$log['ip'] = get_client_ip();
|
|
|
|
|
$log['create_time'] = time();
|
|
|
|
|
$log['remarks'] = '记录成功';
|
|
|
|
|
|
|
|
|
|
M('user_action_log', 'tab_')->data($log)->add();
|
|
|
|
|
|
|
|
|
|
if (Request::isIOS() || Request::isIPadOS()) {
|
|
|
|
|
$packageDownloadLogService = new PackageDownloadLogService();
|
|
|
|
|
$packageDownloadLogService->add([
|
|
|
|
|