diff --git a/beike/Admin/Services/LogisticsService.php b/beike/Admin/Services/LogisticsService.php index b44b0cfd..24f71236 100644 --- a/beike/Admin/Services/LogisticsService.php +++ b/beike/Admin/Services/LogisticsService.php @@ -69,8 +69,8 @@ class LogisticsService if ($isUpdating) {} // 续重范围处理 - $continuationWeightList = (array) ($data['continuation_weight_list'] ? : []); - if(count($continuationWeightList)){ + $continuationWeightList = (array)($data['continuation_weight_list'] ?? []); + if(count($continuationWeightList) > 0){ $logisticsId = $logistics->id; $newWeightList = array_filter(array_map(function($item) use ($logisticsId){ if($item['max'] > 0){