From d4db9244108f6e1dc440009664745589e826949a Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Sat, 22 Jun 2024 10:21:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/store_order/StoreOrderLogic.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/common/logic/store_order/StoreOrderLogic.php b/app/common/logic/store_order/StoreOrderLogic.php index 3cb9a5ec9..05f2af497 100644 --- a/app/common/logic/store_order/StoreOrderLogic.php +++ b/app/common/logic/store_order/StoreOrderLogic.php @@ -111,7 +111,8 @@ class StoreOrderLogic extends BaseLogic self::$store_price = bcadd(self::$store_price, $cart_select[$k]['store_price'], 2);//门店零售价格 // self::$profit = bcadd(self::$profit, $cart_select[$k]['profit'], 2); } - if ($user && $user['user_ship'] == 1) { + $pay_type = isset($params['pay_type'])?$params['pay_type']:0; + if ($user && $user['user_ship'] == 1 && $pay_type !=17) { $pay_price = self::$pay_price; $activity_string = ''; }else{ @@ -119,9 +120,9 @@ class StoreOrderLogic extends BaseLogic $activity_string = '减免'; } - if($pay_price < 500){ - throw new \think\Exception('金额低于500'); - } +// if($pay_price < 500){ +// throw new \think\Exception('金额低于500'); +// } $vipPrice = 0; //成本价 收益