更新属性

This commit is contained in:
mkm 2023-12-02 19:49:56 +08:00
parent 0350c4d655
commit 08b6c51ab1

View File

@ -525,11 +525,13 @@ class ProductRepository extends BaseRepository
{
$result = [];
foreach ($data as $value) {
$result[] = [
'product_id' => $productId,
'mer_cate_id' => $value,
'mer_id' => $merId,
];
if($value['category']){
$result[] = [
'product_id' => $productId,
'mer_cate_id' => $value,
'mer_id' => $merId,
];
}
}
return $result;
}