|
...
|
...
|
@@ -193,10 +193,12 @@ class BlogLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function blog_del(){
|
|
|
|
$ids = $this->param['id'];
|
|
|
|
//获取所有博客的分类id
|
|
|
|
$str = $this->get_category_id($ids);
|
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
$category_data = explode(',',$str);
|
|
|
|
//分类计数减1
|
|
|
|
$this->set_num(BlogCategoryModel::class,$category_data,'del');
|
|
|
|
$this->param['id'] = ['in',$this->param['id']];
|
|
|
|
$this->del($this->param,$ids);
|
...
|
...
|
|