diff --git a/beike/Shop/Services/TotalServices/CustomerDiscountService.php b/beike/Shop/Services/TotalServices/CustomerDiscountService.php index 27d95666..d8f89532 100644 --- a/beike/Shop/Services/TotalServices/CustomerDiscountService.php +++ b/beike/Shop/Services/TotalServices/CustomerDiscountService.php @@ -31,8 +31,8 @@ class CustomerDiscountService if ($discountFactor <= 0) { return null; } - if ($discountFactor > 1) { - $discountFactor = 1; + if ($discountFactor > 100) { + $discountFactor = 100; } $amount = $totalService->getSubTotal() * $discountFactor / 100;