修改补贴金额
This commit is contained in:
parent
2bad727408
commit
75cf794b46
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user