From 5f3947ce5f51633f06b07b4a71299a55983ffbb3 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Sat, 19 Oct 2024 16:55:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=9C=AC=E5=9C=B0=E7=94=9F?= =?UTF-8?q?=E6=B4=BB=E4=B8=9C=E9=BE=99=E6=B1=87=E8=B6=85=E6=97=B6=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC88=E6=89=93=E6=8A=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LocalStoreLogic.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/api/logic/LocalStoreLogic.php b/app/api/logic/LocalStoreLogic.php index 14fcb6d9..15129a0d 100644 --- a/app/api/logic/LocalStoreLogic.php +++ b/app/api/logic/LocalStoreLogic.php @@ -340,8 +340,12 @@ class LocalStoreLogic extends Logic } } else { $data['goods_total_price'] = round($goods_msg['price'] * $post['goods_num'], 2); - } + + if ($post['lstore_id'] == 138) { + $data['goods_total_price'] = round($data['goods_total_price'] * LocalStoreGoodsLogic::$sale, 2); + } + $data['order_no'] = createSn('local_goods_order', 'order_no'); $data['lstore_id'] = $post['lstore_id']; $data['item_id'] = $post['item_id'];