优化代码。

This commit is contained in:
chenxudong 2025-02-18 10:25:08 +08:00
parent 6c1e024d51
commit cfa56f3913
1 changed files with 3 additions and 3 deletions

View File

@ -68,13 +68,13 @@ public class ServiceAspect {
long startTime = System.currentTimeMillis();
StopWatch stopwatch = new StopWatch();
stopwatch.start("接口:" + methodInfo);
UserThreadLocal.setReqArgs(paramInfo);
Object rvt = jp.proceed();
if (Objects.isNull(UserThreadLocal.getUser())) {
UserLoginInfo userLoginInfo = new UserLoginInfo();
UserThreadLocal.set(userLoginInfo);
}
UserThreadLocal.setReqArgs(paramInfo);
Object rvt = jp.proceed();
if (rvt instanceof ResponseEntity) {
UserThreadLocal.setRes(ElectromagneticResultUtil.success(""));