支付金额调整为实际金额
This commit is contained in:
@ -37,8 +37,8 @@ public class PayServiceImpl implements PayService {
|
|||||||
paymentRequest.setAttach(companyId.toString());
|
paymentRequest.setAttach(companyId.toString());
|
||||||
paymentRequest.setSpbillCreateIp("127.0.0.1");
|
paymentRequest.setSpbillCreateIp("127.0.0.1");
|
||||||
paymentRequest.setBody(body);
|
paymentRequest.setBody(body);
|
||||||
// paymentRequest.setTotalFee(totalFee.multiply(new BigDecimal(100)).intValue());
|
paymentRequest.setTotalFee(totalFee.multiply(new BigDecimal(100)).intValue());
|
||||||
paymentRequest.setTotalFee(10);
|
// paymentRequest.setTotalFee(10);
|
||||||
unifiedPaymentInfoDTO = payInteg.unifiedOrder(paymentRequest);
|
unifiedPaymentInfoDTO = payInteg.unifiedOrder(paymentRequest);
|
||||||
// TODO 其他支付类型
|
// TODO 其他支付类型
|
||||||
}
|
}
|
||||||
@ -55,11 +55,11 @@ public class PayServiceImpl implements PayService {
|
|||||||
refundRequest.setCompanyId(companyId);
|
refundRequest.setCompanyId(companyId);
|
||||||
refundRequest.setOutTradeNo(outTradeNo);
|
refundRequest.setOutTradeNo(outTradeNo);
|
||||||
refundRequest.setOutRefundNo(outRefundNo);
|
refundRequest.setOutRefundNo(outRefundNo);
|
||||||
// refundRequest.setTotalFee(totalFee.multiply(new BigDecimal(100)).intValue());
|
refundRequest.setTotalFee(totalFee.multiply(new BigDecimal(100)).intValue());
|
||||||
// refundRequest.setRefundFee(refundFee.multiply(new BigDecimal(100)).intValue());
|
refundRequest.setRefundFee(refundFee.multiply(new BigDecimal(100)).intValue());
|
||||||
|
|
||||||
refundRequest.setTotalFee(10);
|
// refundRequest.setTotalFee(10);
|
||||||
refundRequest.setRefundFee(10);
|
// refundRequest.setRefundFee(10);
|
||||||
payInteg.refund(refundRequest);
|
payInteg.refund(refundRequest);
|
||||||
}
|
}
|
||||||
} catch (Exception e){
|
} catch (Exception e){
|
||||||
|
|||||||
Reference in New Issue
Block a user