作者 lyh

gx

... ... @@ -449,6 +449,7 @@ class NewsLogic extends BaseLogic
$category_ids_arr = array_values(array_unique(array_merge($category_ids,$this->param['category_id'])));
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($category_ids_arr, true) . PHP_EOL, FILE_APPEND);
$category_ids = ','.implode(',',$category_ids_arr).',';
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($category_ids, true) . PHP_EOL, FILE_APPEND);
$this->model->edit(['category_id'=>$category_ids],['id'=>$id]);
}
}
... ...