From caf65fa1d85a9d62dff34f9a89749b1c6cbfd25e Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Mon, 28 Aug 2023 17:49:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E9=9D=9E=E6=8C=89?= =?UTF-8?q?=E9=87=8D=E9=87=8F=E8=AE=A1=E7=AE=97=E7=89=A9=E6=B5=81=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beike/Admin/Services/LogisticsService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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){