Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -130,8 +130,8 @@ class ProjectLogic extends BaseLogic | @@ -130,8 +130,8 @@ class ProjectLogic extends BaseLogic | ||
| 130 | * @time :2023/8/30 11:57 | 130 | * @time :2023/8/30 11:57 |
| 131 | */ | 131 | */ |
| 132 | public function projectSave(){ | 132 | public function projectSave(){ |
| 133 | -// DB::beginTransaction(); | ||
| 134 | -// try { | 133 | + DB::beginTransaction(); |
| 134 | + try { | ||
| 135 | if($this->param['type'] == Project::TYPE_SEVEN){ | 135 | if($this->param['type'] == Project::TYPE_SEVEN){ |
| 136 | //错误单直接返回,单独处理 | 136 | //错误单直接返回,单独处理 |
| 137 | $this->setTypeSevenEdit($this->param); | 137 | $this->setTypeSevenEdit($this->param); |
| @@ -155,11 +155,11 @@ class ProjectLogic extends BaseLogic | @@ -155,11 +155,11 @@ class ProjectLogic extends BaseLogic | ||
| 155 | //创建站点 | 155 | //创建站点 |
| 156 | // $this->createSite($this->param); | 156 | // $this->createSite($this->param); |
| 157 | } | 157 | } |
| 158 | -// DB::commit(); | ||
| 159 | -// }catch (\Exception $e){ | ||
| 160 | -// DB::rollBack(); | ||
| 161 | -// $this->fail('保存失败,请联系管理员'); | ||
| 162 | -// } | 158 | + DB::commit(); |
| 159 | + }catch (\Exception $e){ | ||
| 160 | + DB::rollBack(); | ||
| 161 | + $this->fail('保存失败,请联系管理员'); | ||
| 162 | + } | ||
| 163 | (new SyncService())->projectAcceptAddress($this->param['id']); | 163 | (new SyncService())->projectAcceptAddress($this->param['id']); |
| 164 | return $this->success(); | 164 | return $this->success(); |
| 165 | } | 165 | } |
-
请 注册 或 登录 后发表评论