From 1c4e0243fc86f70a511a1128d20c10e7f8783c05 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Sat, 19 Oct 2024 17:32:32 +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=EF=BC=8C=E4=B8=8D=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E5=9B=9B=E8=88=8D=E4=BA=94=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LocalStoreGoodsLogic.php | 4 ++-- app/api/logic/LocalStoreLogic.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/logic/LocalStoreGoodsLogic.php b/app/api/logic/LocalStoreGoodsLogic.php index 04e6f372..65d4729e 100644 --- a/app/api/logic/LocalStoreGoodsLogic.php +++ b/app/api/logic/LocalStoreGoodsLogic.php @@ -259,7 +259,7 @@ class LocalStoreGoodsLogic extends Logic // 东龙汇超时价格 *88折 if ($get['lstore_id'] == 138) { - $data['price'] = round($data['price'] * self::$sale, 2); + $data['price'] = number_format($data['price'] * self::$sale, 2, '.', ''); } if ($get['lstore_id'] != 138) { @@ -280,7 +280,7 @@ class LocalStoreGoodsLogic extends Logic // 东龙汇超时价格 *88折 if ($get['lstore_id'] == 138) { - $v['price'] = round($v['price'] * self::$sale, 2); + $v['price'] = number_format($v['price'] * self::$sale, 2, '.', ''); } } } diff --git a/app/api/logic/LocalStoreLogic.php b/app/api/logic/LocalStoreLogic.php index 15129a0d..11cf1d67 100644 --- a/app/api/logic/LocalStoreLogic.php +++ b/app/api/logic/LocalStoreLogic.php @@ -343,7 +343,7 @@ class LocalStoreLogic extends Logic } if ($post['lstore_id'] == 138) { - $data['goods_total_price'] = round($data['goods_total_price'] * LocalStoreGoodsLogic::$sale, 2); + $data['goods_total_price'] = number_format($data['goods_total_price'] * LocalStoreGoodsLogic::$sale, 2, '.', ''); } $data['order_no'] = createSn('local_goods_order', 'order_no');