6
0
Fork 0
release
李静 2022-02-15 11:19:53 +08:00
parent d8c1fe3514
commit 9ea2f04ac2
1 changed files with 1 additions and 1 deletions

View File

@ -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};