Commit 5f5c5533 authored by wwccw0591's avatar wwccw0591

share

parent 393d8f6f
......@@ -1121,8 +1121,9 @@ class RefundServiceModel extends \Business\AbstractModel
}
$refundAmount = $refund['refundAmount'];//退款金额
if ($orderInfo['paymentTime']) {
if (($refundAmount < ApiConst::zero) || ($refundAmount > $orderGoods['goodsPayPrice'])) {
$refundAmount = $orderGoods['goodsPayPrice'];
$maxRefundAmount=$orderGoods['goodsPayPrice']*$orderGoods*$orderGoods['goodsNum'];
if (($refundAmount < ApiConst::zero) || ($refundAmount > $maxRefundAmount)) {
$refundAmount = $maxRefundAmount;
}
} else {
$refundAmount = ApiConst::zero;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment