Browse Source

退款金额不能高于订单总金额

yijia
v-Brocloni 3 years ago
parent
commit
58c57fe5be
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      application/admin/controller/unishop/Order.php

+ 3
- 0
application/admin/controller/unishop/Order.php View File

@@ -678,6 +678,9 @@ class Order extends Backend
$this->error("订单已取消,请勿重复操作");
}
if ($order->have_paid>0){
if ($order['total_price']<$refund_fee) {
$this->error("退款金额不能高于订单总金额");
}
//已支付
self::refundOrder($order,$refund_fee);
}else{


Loading…
Cancel
Save