作者 lyh

gx

@@ -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 }