From e49d442ff3989ed32fcf5515ec913ced4cd5e9c8 Mon Sep 17 00:00:00 2001 From: ronger Date: Fri, 14 Jan 2022 10:40:59 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E8=AE=B0=E5=BD=95=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E6=8C=87=E7=BA=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/rymcu/forest/core/service/log/VisitAspect.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/rymcu/forest/core/service/log/VisitAspect.java b/src/main/java/com/rymcu/forest/core/service/log/VisitAspect.java index 809e7ff..ce0ed4f 100644 --- a/src/main/java/com/rymcu/forest/core/service/log/VisitAspect.java +++ b/src/main/java/com/rymcu/forest/core/service/log/VisitAspect.java @@ -59,12 +59,13 @@ public class VisitAspect { String url = request.getRequestURL().toString(); String ua = request.getHeader("user-agent"); String referer = request.getHeader("Referer"); + String fingerprint = request.getHeader("fingerprint"); Visit visit = new Visit(); visit.setVisitUrl(url); visit.setVisitIp(ip); visit.setVisitUa(ua); visit.setVisitCity(""); - visit.setVisitDeviceId(""); + visit.setVisitDeviceId(fingerprint); visit.setVisitRefererUrl(referer); visit.setCreatedTime(new Date()); String authHeader = request.getHeader(JwtConstants.AUTHORIZATION);