From 33e4dd43f281b3b6a3ac6518595bede78d7b9309 Mon Sep 17 00:00:00 2001 From: lewis <604446095@qq.com> Date: Fri, 10 Jan 2025 16:18:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=80=E6=AC=BE=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/RefundOrderService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/service/RefundOrderService.php b/app/common/service/RefundOrderService.php index 59b57184e..59eb7c418 100644 --- a/app/common/service/RefundOrderService.php +++ b/app/common/service/RefundOrderService.php @@ -84,7 +84,8 @@ class RefundOrderService { $amount = '0.00'; foreach ($orderCartProducts as $orderCartProduct) { - $amount = bcadd($amount, $orderCartProduct['total_price'], 2); + $totalAmount = bcsub($orderCartProduct['total_price'], $orderCartProduct['refund_amount'], 2); + $amount = bcadd($amount, $totalAmount, 2); } return $amount; }