Commit 5c6e9b4a authored by libin's avatar libin

日历价格

parent ad630ff1
......@@ -5,6 +5,7 @@ import com.github.wxiaoqi.security.admin.feign.UserFeign;
import com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO;
import com.github.wxiaoqi.security.admin.feign.dto.UserDTO;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
......@@ -32,6 +33,7 @@ import java.util.Objects;
@Aspect
@Component
@ConditionalOnClass(value = UserFeign.class)
@Slf4j
public class TokenAop {
......@@ -54,7 +56,7 @@ public class TokenAop {
public Object token(ProceedingJoinPoint proceedingJoinPoint) throws Throwable{
HttpServletRequest request = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
String token = request.getHeader(tokenHeader);
log.info("token【{}】",token);
Object[] args = proceedingJoinPoint.getArgs();
if (ArrayUtil.isEmpty(args)){
//没有参数直接返回
......@@ -77,6 +79,7 @@ public class TokenAop {
if (Objects.isNull(userDTO)){
userDTO = new AppUserDTO();
}
log.info("token查询app用户【{}】",userDTO);
args[i]= userDTO;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment