fix: 完善日志

dev
huangfeng 1 year ago
parent 7f027773b7
commit b447f7c43f

@ -10,6 +10,7 @@ import com.shxy.xymanager_common.util.StringUtils;
import com.shxy.xymanager_common.util.ip.IpUtils;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.*;
import org.aspectj.lang.reflect.MethodSignature;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@ -47,7 +48,9 @@ public class LogAspect {
*/
@Before("operLogPoinCut()")
public void LogRequestInfo(JoinPoint joinPoint) throws Exception {
handleLog(joinPoint, null, null, null);
MethodSignature methodSignature = (MethodSignature) joinPoint.getSignature();
Log log1 = methodSignature.getMethod().getAnnotation(Log.class);
handleLog(joinPoint, log1, null, null);
}
/**

Loading…
Cancel
Save