支付宝增加金额精度限制

This commit is contained in:
egzosn
2018-01-29 15:31:00 +08:00
parent aae0dfe9ab
commit a64d72d073

View File

@@ -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));
//设置签名