风险系数判断修复
This commit is contained in:
+17
-1
@@ -117,7 +117,7 @@ if ($conn->connect_error) {
|
||||
$where .= " AND " . join(" AND ", $map);
|
||||
}
|
||||
// SQL语句
|
||||
$sql = "SELECT `id`, `campagin_id`, `visit_md5_code`, `domain`, `visit_date`, `IP`, `country`, `result`, `reason`, `fp_url`, `referer`, `vtimes`, `client`, `browser`, `page`, `language`, `user_agent`, `http_referer`, `accept_language_raw`, `judge_timing`, `device`, `add_time` FROM `visitor_logs` WHERE {$where} ORDER BY `id` DESC LIMIT {$startPosition}, {$recordsPerPage}";
|
||||
$sql = "SELECT `id`, `campagin_id`, `visit_md5_code`, `domain`, `visit_date`, `IP`, `country`, `result`, `reason`, `fp_url`, `referer`, `vtimes`, `client`, `browser`, `page`, `language`, `user_agent`, `http_referer`, `accept_language_raw`, `judge_timing`, `fp_hdata`, `device`, `add_time` FROM `visitor_logs` WHERE {$where} ORDER BY `id` DESC LIMIT {$startPosition}, {$recordsPerPage}";
|
||||
|
||||
// 执行查询并输出结果
|
||||
$result = mysqli_query($conn, $sql);
|
||||
@@ -151,6 +151,22 @@ if ($conn->connect_error) {
|
||||
$row['result'] = '检测中';
|
||||
}
|
||||
$row['judge_timing_text'] = cloak_visitor_log_format_timing($row['judge_timing'] ?? '');
|
||||
$row['fp_hdata_text'] = cloak_visitor_log_format_fp_hdata($row['fp_hdata'] ?? '');
|
||||
if (!empty($row['fp_hdata'])) {
|
||||
$explain = cloak_visitor_log_fp_risk_explain(
|
||||
$row['fp_hdata'],
|
||||
$row['reason'] ?? '',
|
||||
$row['result'] ?? '',
|
||||
$row['domain'] ?? ''
|
||||
);
|
||||
$row['fp_hdata_explain_summary'] = $explain['summary'];
|
||||
$row['fp_hdata_explain_html'] = $explain['html'];
|
||||
$row['fp_hdata_explain'] = $explain['data'];
|
||||
} else {
|
||||
$row['fp_hdata_explain_summary'] = '';
|
||||
$row['fp_hdata_explain_html'] = '';
|
||||
$row['fp_hdata_explain'] = null;
|
||||
}
|
||||
$jsonData[] = $row;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user