|
@@ -298,7 +298,7 @@ class CmsContentTemplateSetRepository
|
|
$pro_array = $product->toArray();
|
|
$pro_array = $product->toArray();
|
|
$res_id = implode(",", array_column($pro_array, 'product_id'));
|
|
$res_id = implode(",", array_column($pro_array, 'product_id'));
|
|
$get_product = $this->get_product($res_id);
|
|
$get_product = $this->get_product($res_id);
|
|
- $new_rule2[$k]['products'] = $get_product ?? [];
|
|
|
|
|
|
+ $new_rule2[$k]['products'] = $get_product['products'] ?? [];
|
|
$new_rule2[$k]['subject_id'] = intval($rules['link_url']);
|
|
$new_rule2[$k]['subject_id'] = intval($rules['link_url']);
|
|
$new_rule2[$k]['show_type'] = intval($show_type->show_type) ?? '';
|
|
$new_rule2[$k]['show_type'] = intval($show_type->show_type) ?? '';
|
|
unset($v['url']);
|
|
unset($v['url']);
|