正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -67,7 +67,9 @@ class BlogLogic extends BaseLogic | @@ -67,7 +67,9 @@ class BlogLogic extends BaseLogic | ||
| 67 | } | 67 | } |
| 68 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_BLOG, $id, $this->user['project_id']); | 68 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_BLOG, $id, $this->user['project_id']); |
| 69 | $this->model->edit(['url'=>$route],['id'=>$id]); | 69 | $this->model->edit(['url'=>$route],['id'=>$id]); |
| 70 | + if(!empty($category)){ | ||
| 70 | $this->saveAssociationCate($id,$category); | 71 | $this->saveAssociationCate($id,$category); |
| 72 | + } | ||
| 71 | // DB::commit(); | 73 | // DB::commit(); |
| 72 | // }catch (\Exception $e){ | 74 | // }catch (\Exception $e){ |
| 73 | // DB::rollBack(); | 75 | // DB::rollBack(); |
-
请 注册 或 登录 后发表评论