duqinya преди 6 години
родител
ревизия
43a96bbc07
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Repositories/CmsContentTemplateSetRepository.php

+ 1 - 1
app/Repositories/CmsContentTemplateSetRepository.php

@@ -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 ?? '';