合并分支 'zhl' 到 'master'
u 查看合并请求 !332
正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -31,6 +31,10 @@ class NoticeController extends BaseController | @@ -31,6 +31,10 @@ class NoticeController extends BaseController | ||
| 31 | $referrer_url = $request->input('referrer_url'); | 31 | $referrer_url = $request->input('referrer_url'); |
| 32 | $user_agent = $request->input('user_agent'); | 32 | $user_agent = $request->input('user_agent'); |
| 33 | 33 | ||
| 34 | + // 数据占时不入库, 些日志分析数据 | ||
| 35 | + file_put_contents(storage_path('logs/trafficVisit.log'), var_export($request->all(), true) . PHP_EOL, FILE_APPEND); | ||
| 36 | + return $this->success([]); | ||
| 37 | + | ||
| 34 | if (empty($ip)) | 38 | if (empty($ip)) |
| 35 | return $this->error('IP不能为空'); | 39 | return $this->error('IP不能为空'); |
| 36 | if (empty($url)) | 40 | if (empty($url)) |
| @@ -38,7 +42,6 @@ class NoticeController extends BaseController | @@ -38,7 +42,6 @@ class NoticeController extends BaseController | ||
| 38 | if (empty($user_agent)) | 42 | if (empty($user_agent)) |
| 39 | return $this->error('请求头信息user_agent不能为空'); | 43 | return $this->error('请求头信息user_agent不能为空'); |
| 40 | 44 | ||
| 41 | - // | ||
| 42 | $url_array = parse_url($url); | 45 | $url_array = parse_url($url); |
| 43 | $array = [ | 46 | $array = [ |
| 44 | 'ip' => $ip, | 47 | 'ip' => $ip, |
-
请 注册 或 登录 后发表评论