|
@@ -23,6 +23,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.*;
|
|
|
|
|
|
import static com.citu.framework.common.exception.enums.GlobalErrorCodeConstants.BAD_REQUEST;
|
|
|
+import static com.citu.framework.common.exception.enums.GlobalErrorCodeConstants.SIGNATURE_ERROR_REQUESTS;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -97,8 +98,9 @@ public class ApiSignatureAspect {
|
|
|
// 2. 验证不通过,抛出异常
|
|
|
log.error("[beforePointCut][方法{} 参数({}) 签名失败]", joinPoint.getSignature().toString(),
|
|
|
joinPoint.getArgs());
|
|
|
- throw new ServiceException(BAD_REQUEST.getCode(),
|
|
|
- StrUtil.blankToDefault(signature.message(), BAD_REQUEST.getMsg()));
|
|
|
+
|
|
|
+// ServletUtils.
|
|
|
+ throw new ServiceException(SIGNATURE_ERROR_REQUESTS.getCode(), Long.valueOf(System.currentTimeMillis()).toString());
|
|
|
}
|
|
|
|
|
|
public boolean verifySignature(ApiSignature signature, HttpServletRequest request) {
|