获取 IP

This commit is contained in:
2025-03-04 09:49:37 +08:00
parent fed28278d8
commit badabb3dc5
3 changed files with 9 additions and 9 deletions

View File

@@ -55,7 +55,7 @@ public class ControllerAspect {
HttpServletRequest request = ServletUtil.getRequest();
String method = request.getMethod();
String requestUrl = request.getRequestURL().toString();
String requestIp = ServletUtil.getClientIPByHeader(request);
String requestIp = ServletUtil.getClientIP(request);
long useTime = end - start;
ThreadUtil.execAsync(() -> {
//请求的参数