|
...
|
...
|
@@ -31,6 +31,10 @@ class NoticeController extends BaseController |
|
|
|
$referrer_url = $request->input('referrer_url');
|
|
|
|
$user_agent = $request->input('user_agent');
|
|
|
|
|
|
|
|
// 数据占时不入库, 些日志分析数据
|
|
|
|
file_put_contents(storage_path('logs/trafficVisit.log'), var_export($request->all(), true) . PHP_EOL, FILE_APPEND);
|
|
|
|
return $this->success([]);
|
|
|
|
|
|
|
|
if (empty($ip))
|
|
|
|
return $this->error('IP不能为空');
|
|
|
|
if (empty($url))
|
|
...
|
...
|
@@ -38,7 +42,6 @@ class NoticeController extends BaseController |
|
|
|
if (empty($user_agent))
|
|
|
|
return $this->error('请求头信息user_agent不能为空');
|
|
|
|
|
|
|
|
//
|
|
|
|
$url_array = parse_url($url);
|
|
|
|
$array = [
|
|
|
|
'ip' => $ip,
|
...
|
...
|
|