🎨 记录浏览器指纹

This commit is contained in:
ronger 2022-01-14 10:40:59 +08:00
parent a2dd48df8f
commit e49d442ff3

View File

@ -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);