From 9ea2f04ac2cbd6eca5eaebe614725243985733ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Tue, 15 Feb 2022 11:19:53 +0800 Subject: [PATCH] Fix --- app/Console/Commands/Dealer/OrderProcessCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/Dealer/OrderProcessCommand.php b/app/Console/Commands/Dealer/OrderProcessCommand.php index 94c606e2..ff06580a 100644 --- a/app/Console/Commands/Dealer/OrderProcessCommand.php +++ b/app/Console/Commands/Dealer/OrderProcessCommand.php @@ -405,7 +405,7 @@ class OrderProcessCommand extends Command // 同等级管理津贴最多给三次 if ($last === null || $dealer->lvl->value > $last->lvl->value) { if ($ranking < 3 && $dealer->lvl === DealerLvl::Top) { - if ($secondarySubsidyRule = $rules->get(DealerLvl::Secondary)) { + if ($secondarySubsidyRule = $rules->get(DealerLvl::Secondary->value)) { $key = 'price_'.(1 + $ranking).'st'; $secondarySubsidy = $secondarySubsidyRule->{$key};