🎨 记录浏览器指纹
This commit is contained in:
parent
a2dd48df8f
commit
e49d442ff3
@ -59,12 +59,13 @@ public class VisitAspect {
|
|||||||
String url = request.getRequestURL().toString();
|
String url = request.getRequestURL().toString();
|
||||||
String ua = request.getHeader("user-agent");
|
String ua = request.getHeader("user-agent");
|
||||||
String referer = request.getHeader("Referer");
|
String referer = request.getHeader("Referer");
|
||||||
|
String fingerprint = request.getHeader("fingerprint");
|
||||||
Visit visit = new Visit();
|
Visit visit = new Visit();
|
||||||
visit.setVisitUrl(url);
|
visit.setVisitUrl(url);
|
||||||
visit.setVisitIp(ip);
|
visit.setVisitIp(ip);
|
||||||
visit.setVisitUa(ua);
|
visit.setVisitUa(ua);
|
||||||
visit.setVisitCity("");
|
visit.setVisitCity("");
|
||||||
visit.setVisitDeviceId("");
|
visit.setVisitDeviceId(fingerprint);
|
||||||
visit.setVisitRefererUrl(referer);
|
visit.setVisitRefererUrl(referer);
|
||||||
visit.setCreatedTime(new Date());
|
visit.setCreatedTime(new Date());
|
||||||
String authHeader = request.getHeader(JwtConstants.AUTHORIZATION);
|
String authHeader = request.getHeader(JwtConstants.AUTHORIZATION);
|
||||||
|
Loading…
Reference in New Issue
Block a user