修改补贴金额
This commit is contained in:
parent
b3fdae172b
commit
2bad727408
@ -40,6 +40,7 @@ class OrderDeliveryListen implements ListenerInterface
|
|||||||
|
|
||||||
public function getRate($orderAmount)
|
public function getRate($orderAmount)
|
||||||
{
|
{
|
||||||
|
$orderAmount = min($orderAmount, 100000);
|
||||||
if ($orderAmount >= 1000 && $orderAmount < 5000) {
|
if ($orderAmount >= 1000 && $orderAmount < 5000) {
|
||||||
$rate = 0.05;
|
$rate = 0.05;
|
||||||
} elseif ($orderAmount >= 5000 && $orderAmount < 10000) {
|
} elseif ($orderAmount >= 5000 && $orderAmount < 10000) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user