|
...
|
...
|
@@ -446,10 +446,9 @@ class NewsLogic extends BaseLogic |
|
|
|
$category_ids = explode(',',trim($newsInfo['category_id'],','));
|
|
|
|
$category_ids_arr = array_values(array_unique(array_merge($category_ids,$this->param['category_id'])));
|
|
|
|
$category_ids_str = ','.implode(',',$category_ids_arr).',';
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export( DB::connection()->enableQueryLog();, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export( DB::connection()->enableQueryLog(), true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$rs = $this->model->edit(['category_id'=>$category_ids_str],['id'=>$id]);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(DB::getQueryLog(), true) . PHP_EOL, FILE_APPEND);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}catch (\Exception $e){
|
...
|
...
|
|