diff --git a/app/Services/Business/KuaiTuanTuan/Goods.php b/app/Services/Business/KuaiTuanTuan/Goods.php index a7eed1b..7c73f5e 100644 --- a/app/Services/Business/KuaiTuanTuan/Goods.php +++ b/app/Services/Business/KuaiTuanTuan/Goods.php @@ -31,8 +31,8 @@ class Goods $businessGood['goods_image_list'] = json_encode($businessGood['goods_image_list'], 256); foreach ($skuList as $sku) { $sku['spec_list'] = json_encode($sku['spec_list'], 256); - if ((int)$businessGood['quantity_type']) { - $businessGood['is_sync'] = 0; + if ((int)$sku['quantity_type']) { + $sku['is_sync'] = 0; } $data = array_merge($businessGood, $sku); $businessGoodSku = BusinessGoodsSku::firstOrNew(