Merge branch 'hotfix/log-landing-page' into release

master
ELF 5 years ago
commit 02e85ac94c

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

Loading…
Cancel
Save