|
...
|
...
|
@@ -442,6 +442,7 @@ class NewsLogic extends BaseLogic |
|
|
|
foreach ($this->param['id'] as $id){
|
|
|
|
//获取当前产品的分类
|
|
|
|
$newsInfo = $this->model->read(['id'=>$id],['id','category_id']);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($newsInfo, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$category_ids = explode(',',trim($newsInfo['category_id'],','));
|
|
|
|
$category_ids_arr = array_values(array_unique(array_merge($category_ids,$this->param['category_id'])));
|
|
|
|
$category_ids = ','.implode(',',$category_ids_arr).',';
|
...
|
...
|
|