From af31549a6818d58d2a489a42482dead74fca1570 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Sat, 19 Oct 2024 16:46:34 +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/LocalStoreGoodsLogic.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/api/logic/LocalStoreGoodsLogic.php b/app/api/logic/LocalStoreGoodsLogic.php index c26121bc..55c509a8 100644 --- a/app/api/logic/LocalStoreGoodsLogic.php +++ b/app/api/logic/LocalStoreGoodsLogic.php @@ -16,6 +16,9 @@ use think\facade\Db; class LocalStoreGoodsLogic extends Logic { + // 88折 + private static $sale = 88 / 100; + // 获取商品列表 public static function lists($get) { @@ -254,6 +257,11 @@ class LocalStoreGoodsLogic extends Logic 'audit_status' => LocalStoreGoodsEnum::AUDIT_STATUS_OK, ])->find()->toArray(); + // 东龙汇超时价格 *88折 + if ($get['lstore_id'] == 138) { + $data['price'] = $data['price'] * self::$sale; + } + if ($get['lstore_id'] != 138) { $data['close'] = array( 'status' => ConfigServer::get('website', 'show_local_notice'), @@ -269,6 +277,11 @@ class LocalStoreGoodsLogic extends Logic foreach ($data['item'] as &$v) { $v['image'] = Config::get('aliyunoss.domain') . $v['image']; + + // 东龙汇超时价格 *88折 + if ($get['lstore_id'] == 138) { + $v['price'] = $v['price'] * self::$sale; + } } }