From 014c7541f37791111696ad01a4ab2a9d766d5240 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Sun, 26 Apr 2020 14:07:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=BD=E5=9C=B0=E9=A1=B5=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9B=B4=E6=96=B0=E8=A1=8C=E4=B8=BA=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/PackageController.class.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Application/Home/Controller/PackageController.class.php b/Application/Home/Controller/PackageController.class.php index 6057c68da..41e70efce 100644 --- a/Application/Home/Controller/PackageController.class.php +++ b/Application/Home/Controller/PackageController.class.php @@ -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([