|
@@ -689,7 +689,7 @@ class StoreOrderController
|
|
|
$data['refund_price'] = bcadd($price, $orderInfo['refund_price'], 2);
|
|
|
$bj = bccomp((float)$orderInfo['pay_price'], (float)$data['refund_price'], 2);
|
|
|
if ($bj < 0) return app('json')->fail('退款金额大于支付金额,请修改退款金额');
|
|
|
- $refundData['pay_price'] = $orderInfo['pay_price'];
|
|
|
+ $refundData['pay_price'] = bcadd($orderInfo['pay_price'], $orderInfo['deposit'], 2);
|
|
|
$refundData['refund_price'] = $price;
|
|
|
$refundData['refund_id'] = $orderInfo['order_id'] . time();
|
|
|
if ($orderInfo['pay_type'] == 'weixin') {
|