更新属性
This commit is contained in:
parent
0350c4d655
commit
08b6c51ab1
@ -525,11 +525,13 @@ class ProductRepository extends BaseRepository
|
|||||||
{
|
{
|
||||||
$result = [];
|
$result = [];
|
||||||
foreach ($data as $value) {
|
foreach ($data as $value) {
|
||||||
$result[] = [
|
if($value['category']){
|
||||||
'product_id' => $productId,
|
$result[] = [
|
||||||
'mer_cate_id' => $value,
|
'product_id' => $productId,
|
||||||
'mer_id' => $merId,
|
'mer_cate_id' => $value,
|
||||||
];
|
'mer_id' => $merId,
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user