mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-06-03 23:23:13 +08:00
支付宝增加金额精度限制
This commit is contained in:
@@ -438,7 +438,7 @@ public class AliPayService extends BasePayService {
|
||||
if (!StringUtils.isEmpty(refundOrder.getRefundNo())){
|
||||
bizContent.put("out_request_no", refundOrder.getRefundNo());
|
||||
}
|
||||
bizContent.put("refund_amount", refundOrder.getRefundAmount());
|
||||
bizContent.put("refund_amount", refundOrder.getRefundAmount().setScale(2, BigDecimal.ROUND_HALF_UP));
|
||||
//设置请求参数的集合
|
||||
parameters.put("biz_content", JSON.toJSONString(bizContent));
|
||||
//设置签名
|
||||
|
||||
Reference in New Issue
Block a user