feat:过滤掉空的不参与验签

This commit is contained in:
苏竹红
2025-07-23 11:40:19 +08:00
parent 1e0d0e4f29
commit c87aa6ba55

View File

@@ -28,6 +28,7 @@ public class OpenSignatureUtil {
.filter(e -> !"appKey".equals(e.getKey())) .filter(e -> !"appKey".equals(e.getKey()))
.filter(e -> !"timestamp".equals(e.getKey())) .filter(e -> !"timestamp".equals(e.getKey()))
.filter(e -> !"sign".equals(e.getKey())) .filter(e -> !"sign".equals(e.getKey()))
.filter(e -> e.getValue() != null && !e.getValue().isEmpty())
.collect(Collectors.toMap( .collect(Collectors.toMap(
Map.Entry::getKey, Map.Entry::getKey,
Map.Entry::getValue Map.Entry::getValue