This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
loumengning
/
shop
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
退款金额不能高于订单总金额
yijia
v-Brocloni
3 years ago
parent
798d6ec511
commit
58c57fe5be
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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{
Write
Preview
Loading…
Cancel
Save