正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
| @@ -122,7 +122,12 @@ class BlogCategoryLogic extends BaseLogic | @@ -122,7 +122,12 @@ class BlogCategoryLogic extends BaseLogic | ||
| 122 | if($this->param['pid'] != 0){ | 122 | if($this->param['pid'] != 0){ |
| 123 | //把所有上级博客移动到下级 | 123 | //把所有上级博客移动到下级 |
| 124 | $associationCateModel = new AssociationCate(); | 124 | $associationCateModel = new AssociationCate(); |
| 125 | - $associationCateModel->edit(['category_id'=>$id],['category_id'=>$this->param['pid'],$associationCateModel::BLOG_CATE]); | 125 | + $associationCateModel->list(['type'=>$associationCateModel::BLOG_CATE,]); |
| 126 | + $data = [ | ||
| 127 | + 'type'=>$associationCateModel::BLOG_CATE, | ||
| 128 | + 'type_id'=> | ||
| 129 | + ]; | ||
| 130 | + $associationCateModel->a(['category_id'=>$id],['category_id'=>$this->param['pid'],$associationCateModel::BLOG_CATE]); | ||
| 126 | } | 131 | } |
| 127 | }catch (\Exception $e){ | 132 | }catch (\Exception $e){ |
| 128 | $this->fail('系统错误请联系管理员'); | 133 | $this->fail('系统错误请联系管理员'); |
-
请 注册 或 登录 后发表评论