Merge remote-tracking branch 'origin/cc_20250325_select' into cc_20250325_select

This commit is contained in:
shuo.wang
2025-04-17 18:38:59 +08:00

View File

@@ -105,10 +105,12 @@ public class OpenApiValidateFilter implements Filter {
new TypeReference<TreeMap<String, String>>() {} new TypeReference<TreeMap<String, String>>() {}
); );
params.put("appKey",appKey); params.put("appKey",appKey);
params.put("timestamp", String.valueOf(timestamp)); params.put("timestamp", timestampStr);
String serverSign = OpenSignatureUtil.generateSign(params, coolAppSecret); String serverSign = OpenSignatureUtil.generateSign(params, coolAppSecret);
log.info("{}",serverSign);
if (!serverSign.equalsIgnoreCase(clientSign)) { if (!serverSign.equalsIgnoreCase(clientSign)) {
throw new ServiceException(ErrorCodeEnum.SIGN_FAIL); throw new ServiceException(ErrorCodeEnum.SIGN_FAIL);
} }