|
|
@@ -48,9 +48,9 @@ public class LogAspect {
|
|
|
HttpServletRequest request = attributes.getRequest();
|
|
|
|
|
|
String userId = "";
|
|
|
- if(null != StpUtil.getLoginId()){
|
|
|
- userId = StpUtil.getLoginId().toString();
|
|
|
- }
|
|
|
+// if(null != StpUtil.getLoginId()){
|
|
|
+// userId = StpUtil.getLoginId().toString();
|
|
|
+// }
|
|
|
//请求人 url method ip class_method
|
|
|
SysLog sysLog = new SysLog(userId, request.getRequestURL().toString(), request.getMethod(), joinPoint.getSignature().getDeclaringTypeName(), joinPoint.getSignature().getName(), request.getRemoteAddr(), new Date());
|
|
|
// SysLog sysLog = new SysLog(JwtTokenUtils.getUsernameFromRequest(request), request.getRequestURL().toString(), request.getMethod(), joinPoint.getSignature().getDeclaringTypeName(), joinPoint.getSignature().getName(), request.getRemoteAddr(), new Date());
|