From b55503650c35208728aabd9d79674f2393ee1ee0 Mon Sep 17 00:00:00 2001 From: lewis <604446095@qq.com> Date: Thu, 3 Apr 2025 11:40:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=84=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E9=AB=98=E7=BA=A7=E4=BC=9A=E5=91=98=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/logic/beforehand_order/BeforehandOrderLogic.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php index c7223d25..18b973f3 100644 --- a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php +++ b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php @@ -969,7 +969,8 @@ class BeforehandOrderLogic extends BaseLogic $v['mark'] = $find['after_sales']; if (isset($params['type']) && $params['type'] == 2) { $price = $v['purchase']; - $v['total_price'] = bcmul($v['cost'], $v['nums'], 2); + $v['price'] = $v['cost']; + $v['total_price'] = bcmul($v['price'], $v['nums'], 2); $v['pay_price'] = bcmul($price, $v['nums'], 2); } else { if ($v['vip_price'] > 0) {