|
@@ -132,10 +132,10 @@ class StoreRefundOrder extends BaseController
|
|
|
if ($order->status < 0) return app('json')->fail('订单已退款');
|
|
|
if ($order->status == 10) return app('json')->fail('订单不支持退款');
|
|
|
if($order->is_virtual && $data['refund_type'] == 2) return app('json')->fail('订单不支持退款退货');
|
|
|
- if($order->is_percentage == 1){
|
|
|
- $data['refund_price'] = $order->pay_price;
|
|
|
- }
|
|
|
if ($type == 2) {
|
|
|
+ if($order->is_percentage == 1){
|
|
|
+ $data['refund_price'] = $order->pay_price;
|
|
|
+ }
|
|
|
$refund = $this->repository->refund($order, (int)$ids[0], $num, $uid, $data);
|
|
|
} else {
|
|
|
$refund = $this->repository->refunds($order, $ids, $uid, $data);
|