优化代码。
This commit is contained in:
parent
6c1e024d51
commit
cfa56f3913
|
|
@ -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(""));
|
||||
|
|
|
|||
Loading…
Reference in New Issue