From 7d56ff9fbd0bb4fd6d429da2557d89f176ec7ad3 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Thu, 20 Jun 2024 17:32:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E9=93=B6=E6=9C=BA=E4=B8=8B=E5=8D=95?= =?UTF-8?q?=E9=87=91=E9=A2=9D=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/store_order/StoreOrderLogic.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/common/logic/store_order/StoreOrderLogic.php b/app/common/logic/store_order/StoreOrderLogic.php index b5e6bf98..b892b808 100644 --- a/app/common/logic/store_order/StoreOrderLogic.php +++ b/app/common/logic/store_order/StoreOrderLogic.php @@ -118,6 +118,10 @@ class StoreOrderLogic extends BaseLogic $pay_price =bcsub(self::$pay_price, self::$activity_price, 2); //减去活动优惠金额 $activity_string = '减免'; } + + if($pay_price < 500){ + throw new \think\Exception('金额低于500'); + } $vipPrice = 0; //成本价 收益