作者 lyh

gx

@@ -54,8 +54,8 @@ class BlogLogic extends BaseLogic @@ -54,8 +54,8 @@ class BlogLogic extends BaseLogic
54 */ 54 */
55 public function blogSave(){ 55 public function blogSave(){
56 //拼接参数 56 //拼接参数
57 - DB::beginTransaction();  
58 - try { 57 +// DB::beginTransaction();
  58 +// try {
59 $category = $this->param['category_id']; 59 $category = $this->param['category_id'];
60 $this->param = $this->paramProcessing($this->param); 60 $this->param = $this->paramProcessing($this->param);
61 if(isset($this->param['id']) && !empty($this->param['id'])){ 61 if(isset($this->param['id']) && !empty($this->param['id'])){
@@ -68,11 +68,11 @@ class BlogLogic extends BaseLogic @@ -68,11 +68,11 @@ class BlogLogic extends BaseLogic
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 $this->saveAssociationCate($id,$category); 70 $this->saveAssociationCate($id,$category);
71 - DB::commit();  
72 - }catch (\Exception $e){  
73 - DB::rollBack();  
74 - $this->fail('error');  
75 - } 71 +// DB::commit();
  72 +// }catch (\Exception $e){
  73 +// DB::rollBack();
  74 +// $this->fail('error');
  75 +// }
76 //通知更新 76 //通知更新
77 $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_BLOG, 'route'=>$route]); 77 $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>RouteMap::SOURCE_BLOG, 'route'=>$route]);
78 return $this->success(); 78 return $this->success();