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