正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -442,6 +442,7 @@ class NewsLogic extends BaseLogic | @@ -442,6 +442,7 @@ class NewsLogic extends BaseLogic | ||
| 442 | foreach ($this->param['id'] as $id){ | 442 | foreach ($this->param['id'] as $id){ |
| 443 | //获取当前产品的分类 | 443 | //获取当前产品的分类 |
| 444 | $newsInfo = $this->model->read(['id'=>$id],['id','category_id']); | 444 | $newsInfo = $this->model->read(['id'=>$id],['id','category_id']); |
| 445 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($newsInfo, true) . PHP_EOL, FILE_APPEND); | ||
| 445 | $category_ids = explode(',',trim($newsInfo['category_id'],',')); | 446 | $category_ids = explode(',',trim($newsInfo['category_id'],',')); |
| 446 | $category_ids_arr = array_values(array_unique(array_merge($category_ids,$this->param['category_id']))); | 447 | $category_ids_arr = array_values(array_unique(array_merge($category_ids,$this->param['category_id']))); |
| 447 | $category_ids = ','.implode(',',$category_ids_arr).','; | 448 | $category_ids = ','.implode(',',$category_ids_arr).','; |
-
请 注册 或 登录 后发表评论