!121 错误修改

Merge pull request !121 from develop
This commit is contained in:
赵世界 2022-11-01 01:39:32 +00:00 committed by Gitee
commit 2458ca5aa9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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(