|
@@ -186,7 +186,7 @@ class CmsContentTemplateSetRepository {
|
|
|
$show_type = $this->cmsSubject->select('show_type')->where('id', $rules['link_url'])->first();
|
|
|
$product = $this->cmsSubjectProduct->where('subject_id', $rules['link_url'])->orderBy('sort', 'asc')->get();
|
|
|
$pro_array = $product->toArray();
|
|
|
- $res_id = implode(",", array_column($pro_array, 'id'));
|
|
|
+ $res_id = implode(",", array_column($pro_array, 'product_id'));
|
|
|
$new_rule[$k]['product_id'] = $res_id;
|
|
|
$new_rule[$k]['subject_id'] = $rules['link_url'];
|
|
|
$new_rule[$k]['show_type'] = $show_type->show_type ?? '';
|