feat:云流水

This commit is contained in:
苏竹红
2025-04-17 17:46:16 +08:00
parent 51207f3df2
commit 53578e81cd

View File

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