mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-03 19:16:21 +00:00
fix: 修复 BigDecimal 类型数据序列化和签名异常问题, 修复微信支付方式判断逻辑
This commit is contained in:
@@ -78,7 +78,7 @@ public class PaySignUtil {
|
||||
// BigDecimal类型
|
||||
else if (field.getType().equals(BigDecimal.class)) {
|
||||
BigDecimal bigDecimal = (BigDecimal) fieldValue;
|
||||
String decimalString = bigDecimal.toString();
|
||||
String decimalString = bigDecimal.stripTrailingZeros().toPlainString();
|
||||
map.put(fieldName, decimalString);
|
||||
}
|
||||
// 集合类型
|
||||
|
Reference in New Issue
Block a user