feat:云流水
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user