修复:非按重量计算物流保存报错
This commit is contained in:
parent
e6882598fe
commit
caf65fa1d8
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in New Issue