帮助中心 helper



nsStatistics接收数据测试

发布于:2017-11-17 13:57 编辑:Surou  浏览:
​<?php
$userTime = $_POST['userTime'];
$uuid = $_POST['uuid'];
$sign = $_POST['sign'];
$machineCode = $_POST['machineCode'];
$project_id = $_POST['project_id'];
$statisticsInfo = $_POST['statisticsInfo'];
$statisticsInfoJson = base64_decode($statisticsInfo);
$de_json = json_decode($statisticsInfoJson,TRUE);
$myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
$txt = "userTime:".$userTime."\n";
fwrite($myfile, $txt);
$txt = "uuid:".$uuid."\n";
fwrite($myfile, $txt);
$txt = "sign:".$sign."\n";
fwrite($myfile, $txt);
$txt = "machineCode:".$machineCode."\n";
fwrite($myfile, $txt);
$txt = "project_id:".$project_id."\n";
fwrite($myfile, $txt);
$txt = "de_json:".$de_json."\n";
fwrite($myfile, $txt);
fclose($myfile);
 
下一篇:没有了 上一篇:统计分析系统介绍