|
|
@@ -1,5 +1,6 @@
|
|
|
package com.dk.common.infrastructure.aspect;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.dk.common.exception.BaseBusinessException;
|
|
|
import com.dk.common.infrastructure.enums.ErrorCodeEnum;
|
|
|
import com.dk.common.infrastructure.util.AuthUtils;
|
|
|
@@ -72,13 +73,17 @@ public class ServiceAspect implements HandlerInterceptor {
|
|
|
*/
|
|
|
@Before("print()")
|
|
|
public void before(JoinPoint joinPoint) {
|
|
|
+ log.info("service切面 - httpServletRequest=>{}", JSON.toJSONString(httpServletRequest));
|
|
|
+
|
|
|
try {
|
|
|
if(httpServletRequest==null){
|
|
|
log.info("service切面=>请求头为空");
|
|
|
return;
|
|
|
}
|
|
|
String authorization = httpServletRequest.getHeader("Authorization");
|
|
|
- if(authorization == null ){
|
|
|
+ log.info("service切面 - authorization=>{}",authorization);
|
|
|
+
|
|
|
+ if(authorization == null){
|
|
|
return;
|
|
|
}
|
|
|
|