From 7e90bd19a795d2951a89b6a550fa5fa61b63731e Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Thu, 16 May 2024 18:20:48 +0800 Subject: [PATCH] YS --- app/store/model/OrderRefund.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/store/model/OrderRefund.php b/app/store/model/OrderRefund.php index 4e1ed2da..6c097863 100644 --- a/app/store/model/OrderRefund.php +++ b/app/store/model/OrderRefund.php @@ -261,6 +261,7 @@ class OrderRefund extends OrderRefundModel { // 订单详情 $order = Order::detail($this['order_id']); + $data['refund_money'] = empty($data['refund_money'])?0:$data['refund_money']; if ($data['refund_money'] > min($order['pay_price'], $this['orderGoods']['total_pay_price'])) { $this->error = '退款金额不能大于商品实付款金额'; return false;