6
0
Fork 0

Merge branch 'release/0.3.9'

master 0.3.9
nishengli 2 years ago
commit 361f249ae2
  1. 2
      pom.xml
  2. 6
      src/main/java/com/tsl3060/open/extend/core/secure/RSASecure.java

@ -6,7 +6,7 @@
<groupId>com.tsl3060.open.extend</groupId>
<artifactId>tsl-open-sdk-java-wanshun</artifactId>
<version>0.3.8</version>
<version>0.3.9</version>
<properties>
<maven.compiler.source>8</maven.compiler.source>

@ -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