作者 lyh

gx

@@ -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();