6
0
Fork 0

修复验签失败问题

master
nishengli 2 years ago
parent 9e6c91e5b3
commit 4201b945c2
  1. 6
      src/main/java/com/tsl3060/open/extend/core/secure/RSASecure.java

@ -48,13 +48,13 @@ public class RSASecure implements ISecure {
Object v = j.get(key);
String vx;
if (v instanceof Double) {
vx = String.format("%.2f", v);
vx = String.format("%s", BigDecimal.valueOf((Double) v).stripTrailingZeros());
} else if (v instanceof Float) {
vx = String.format("%.2f", v);
vx = String.format("%s", BigDecimal.valueOf((Float) v).stripTrailingZeros());
} else if (v instanceof Boolean) {
vx = String.format("%s", v);
} else if (v instanceof BigDecimal) {
vx = String.format("%.2f", v);
vx = String.format("%s", ((BigDecimal) v).stripTrailingZeros());
} else {
vx = String.valueOf(v);
}

Loading…
Cancel
Save