修复:非按重量计算物流保存报错

This commit is contained in:
wuhui_zzw 2023-08-28 17:49:43 +08:00
parent e6882598fe
commit caf65fa1d8
1 changed files with 2 additions and 2 deletions

View File

@ -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){