更新标签

This commit is contained in:
shengchanzhe 2023-12-25 17:45:26 +08:00
parent 968504744a
commit c04292e06d

View File

@ -726,7 +726,7 @@ class ProductRepository extends BaseRepository
if ($data['product_type'] == 3) $make = app()->make(ProductAssistSkuRepository::class);
if ($data['product_type'] == 4) $make = app()->make(ProductGroupSkuRepository::class);
$spu_where = ['activity_id' => $activeId, 'product_type' => $data['product_type'], 'product_id' => $id];
$spu_where = ['activity_id' => $activeId??0, 'product_type' => $data['product_type'], 'product_id' => $id];
$spu = $spu_make->getSearch($spu_where)->find();
$data['star'] = $spu['star'] ?? '';
$data['mer_labels'] = $spu['mer_labels'] ?? '';