正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -449,6 +449,7 @@ class NewsLogic extends BaseLogic | @@ -449,6 +449,7 @@ class NewsLogic extends BaseLogic | ||
| 449 | $category_ids_arr = array_values(array_unique(array_merge($category_ids,$this->param['category_id']))); | 449 | $category_ids_arr = array_values(array_unique(array_merge($category_ids,$this->param['category_id']))); |
| 450 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($category_ids_arr, true) . PHP_EOL, FILE_APPEND); | 450 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($category_ids_arr, true) . PHP_EOL, FILE_APPEND); |
| 451 | $category_ids = ','.implode(',',$category_ids_arr).','; | 451 | $category_ids = ','.implode(',',$category_ids_arr).','; |
| 452 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($category_ids, true) . PHP_EOL, FILE_APPEND); | ||
| 452 | $this->model->edit(['category_id'=>$category_ids],['id'=>$id]); | 453 | $this->model->edit(['category_id'=>$category_ids],['id'=>$id]); |
| 453 | } | 454 | } |
| 454 | } | 455 | } |
-
请 注册 或 登录 后发表评论