|
@@ -6,6 +6,7 @@ import com.fdkankan.ucenter.common.constants.ResultCode;
|
|
|
import com.fdkankan.ucenter.entity.AppSecret;
|
|
|
import com.fdkankan.ucenter.exception.BusinessException;
|
|
|
import com.fdkankan.ucenter.service.IAppSecretService;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.aspectj.lang.ProceedingJoinPoint;
|
|
|
import org.aspectj.lang.annotation.Around;
|
|
@@ -20,6 +21,7 @@ import java.util.*;
|
|
|
|
|
|
@Aspect
|
|
|
@Component
|
|
|
+@Slf4j
|
|
|
public class SignVerifyAspect {
|
|
|
|
|
|
@Autowired
|
|
@@ -38,6 +40,7 @@ public class SignVerifyAspect {
|
|
|
String sign = request.getHeader(verifySign.signParam());
|
|
|
String appId = request.getHeader(verifySign.appId());
|
|
|
|
|
|
+ log.info("verifySign--sign:{},appid:{}",sign,appId);
|
|
|
AppSecret byAppId = appSecretService.getByAppId(appId);
|
|
|
if(byAppId == null){
|
|
|
throw new BusinessException(ResultCode.SIGN_ERROR);
|