From 0105fafcb39349f9e1e687b32b25641899424eb0 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Fri, 28 Feb 2020 10:05:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=BD=E5=9C=B0=E9=A1=B5useragent=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/HomeController.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index 51d0fb551..ffac24eea 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -141,6 +141,7 @@ class HomeController extends Controller public function landingPage() { + $testKey = I('test_key', ''); $code = I('code', ''); $gameId = I('gid', 0); $promoteId = I('pid', 0); @@ -170,6 +171,16 @@ class HomeController extends Controller $isIOS = Request::isIOS(); $isAndroid = Request::isAndroid(); $isIOS13 = Request::isIOS13(); + + if ($testKey != '') { + $tempDataDir = RUNTIME_PATH . 'Data'; + if(!is_dir($tempDataDir)) { + @mkdir($tempDataDir); + } + $testStr = date('Y-m-d H:i:s') . ' - ' . $testKey . ' - ' . Request::getUserAgent(); + file_put_contents($tempDataDir . '/langding_page.log', $testStr, FILE_APPEND); + } + $columns = [ 'id', 'sdk_version',