From 75cf794b464358bf6a9aa09830b38bf46ef06173 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Thu, 7 Mar 2024 13:49:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A1=A5=E8=B4=B4=E9=87=91?= =?UTF-8?q?=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/listens/OrderDeliveryListen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/listens/OrderDeliveryListen.php b/crmeb/listens/OrderDeliveryListen.php index e81eb4f1..c016ff36 100644 --- a/crmeb/listens/OrderDeliveryListen.php +++ b/crmeb/listens/OrderDeliveryListen.php @@ -33,6 +33,7 @@ class OrderDeliveryListen implements ListenerInterface $consumption = StoreConsumption::where('type', StoreConsumption::TYPE_RECHARGE)->find(); $repo->startTime = date('Y-m-d H:i:s'); $repo->endTime = '2025-07-01'; + $consumptionTotal = min($consumptionTotal, 100000); $rate = $this->getRate($consumptionTotal); $repo->send($consumption, $rate, $order['uid'], $order['group_order_id'], $consumptionTotal, StoreConsumptionUser::STATUS_REPEAL, StoreConsumptionUser::TYPE_TWO); } @@ -40,7 +41,6 @@ class OrderDeliveryListen implements ListenerInterface public function getRate($orderAmount) { - $orderAmount = min($orderAmount, 100000); if ($orderAmount >= 1000 && $orderAmount < 5000) { $rate = 0.05; } elseif ($orderAmount >= 5000 && $orderAmount < 10000) {