feat:验签关闭

This commit is contained in:
苏竹红
2025-08-08 10:44:37 +08:00
parent 6e22ad187e
commit 7455756868

View File

@@ -58,7 +58,7 @@ public class OpenApiValidateFilter implements Filter {
} }
MDC.put(CommonConstants.REQUEST_ID, UUIDUtils.get32UUID()); MDC.put(CommonConstants.REQUEST_ID, UUIDUtils.get32UUID());
//statusRefresh 放开不需要验签 //statusRefresh 放开不需要验签
if(uri.startsWith("/zxjp/open/v1/statusRefresh")||uri.startsWith("/zxjp/open/v1/getStoreUser")){ if(uri.startsWith("/zxjp/open/v1/")||uri.startsWith("/zxjp/open/v1/getStoreUser")){
filterChain.doFilter(servletRequest, response); filterChain.doFilter(servletRequest, response);
return; return;
} }
@@ -78,7 +78,7 @@ public class OpenApiValidateFilter implements Filter {
long currentTime = System.currentTimeMillis()/1000; long currentTime = System.currentTimeMillis()/1000;
long timeDiff = Math.abs(currentTime - timestamp); long timeDiff = Math.abs(currentTime - timestamp);
try { try {
if (timeDiff > 600) { if (timeDiff > 1600) {
log.info("OpenApiValidateFilter==>{}","请求已过期,服务器时间:" + currentTime + " 请求时间:" + timestamp); log.info("OpenApiValidateFilter==>{}","请求已过期,服务器时间:" + currentTime + " 请求时间:" + timestamp);
throw new ServiceException(ErrorCodeEnum.SIGN_FAIL,"请求已过期请保证timestamp时间在10分钟之内"); throw new ServiceException(ErrorCodeEnum.SIGN_FAIL,"请求已过期请保证timestamp时间在10分钟之内");
} }