|
|
@@ -5,7 +5,6 @@ import cn.hutool.extra.servlet.ServletUtil; |
|
|
|
import org.springframework.security.web.authentication.WebAuthenticationDetails; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
|
|
|
/** |
|
|
|
* <p> |
|
|
@@ -47,10 +46,6 @@ public class WebRequestDetails extends WebAuthenticationDetails { |
|
|
|
this.userAgent = StrUtil.sub(request.getHeader("user-agent"), 0, 500); |
|
|
|
} |
|
|
|
|
|
|
|
public LocalDateTime getRequestTime() { |
|
|
|
return requestTime; |
|
|
|
} |
|
|
|
|
|
|
|
public String getRequestIp() { |
|
|
|
return requestIp; |
|
|
|
} |
|
|
|