diff --git a/beike/Shop/Services/TotalServices/ShippingService.php b/beike/Shop/Services/TotalServices/ShippingService.php index 09b166fc..e5458f66 100644 --- a/beike/Shop/Services/TotalServices/ShippingService.php +++ b/beike/Shop/Services/TotalServices/ShippingService.php @@ -17,7 +17,12 @@ use Illuminate\Support\Str; class ShippingService { - public static function getTotal(TotalService $totalService) + /** + * @param TotalService $totalService + * @return array|null + * @throws \Exception + */ + public static function getTotal(TotalService $totalService): ?array { $shippingMethod = $totalService->shippingMethod; if (empty($shippingMethod)) {