|
...
|
...
|
@@ -196,12 +196,10 @@ class BlogLogic extends BaseLogic |
|
|
|
$str = $this->get_category_id($ids);
|
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
if(!empty($str)){
|
|
|
|
$category_data = explode(',',$str);
|
|
|
|
$this->set_num(BlogCategoryModel::class,$category_data,'del');
|
|
|
|
$this->param['id'] = ['in',$this->param['id']];
|
|
|
|
$this->del($this->param,$ids);
|
|
|
|
}
|
|
|
|
DB::commit();
|
|
|
|
}catch (Exception $e){
|
|
|
|
DB::rollBack();
|
...
|
...
|
|