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) {