Merge remote-tracking branch 'origin/cc_20250325_select' into cc_20250325_select
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user