作者 lyh

gx

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