作者 lyh

gx

@@ -90,9 +90,8 @@ class ProjectLogic extends BaseLogic @@ -90,9 +90,8 @@ class ProjectLogic extends BaseLogic
90 * @time :2023/8/30 11:57 90 * @time :2023/8/30 11:57
91 */ 91 */
92 public function projectSave(){ 92 public function projectSave(){
93 -  
94 -// DB::beginTransaction();  
95 -// try { 93 + DB::beginTransaction();
  94 + try {
96 if($this->param['type'] == Project::TYPE_SEVEN){ 95 if($this->param['type'] == Project::TYPE_SEVEN){
97 //错误单直接返回,单独处理 96 //错误单直接返回,单独处理
98 $this->setTypeSevenEdit($this->param); 97 $this->setTypeSevenEdit($this->param);
@@ -110,11 +109,11 @@ class ProjectLogic extends BaseLogic @@ -110,11 +109,11 @@ class ProjectLogic extends BaseLogic
110 //保存售后信息 109 //保存售后信息
111 $this->saveProjectAfter($this->param['project_after']); 110 $this->saveProjectAfter($this->param['project_after']);
112 } 111 }
113 -// DB::commit();  
114 -// }catch (\Exception $e){  
115 -// DB::rollBack();  
116 -// $this->fail('error');  
117 -// } 112 + DB::commit();
  113 + }catch (\Exception $e){
  114 + DB::rollBack();
  115 + $this->fail('error');
  116 + }
118 return $this->success(); 117 return $this->success();
119 } 118 }
120 119