正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -104,16 +104,16 @@ class HrLogic extends BaseLogic | @@ -104,16 +104,16 @@ class HrLogic extends BaseLogic | ||
| 104 | $this->fail('当前管理员信息中手机号已存在'); | 104 | $this->fail('当前管理员信息中手机号已存在'); |
| 105 | } | 105 | } |
| 106 | } | 106 | } |
| 107 | - DB::beginTransaction(); | ||
| 108 | - try { | 107 | +// DB::beginTransaction(); |
| 108 | +// try { | ||
| 109 | //同步更新管理员手机号码 | 109 | //同步更新管理员手机号码 |
| 110 | $managerModel->edit(['mobile'=>$this->param['mobile']],['id'=>$hrInfo['manage_id']]); | 110 | $managerModel->edit(['mobile'=>$this->param['mobile']],['id'=>$hrInfo['manage_id']]); |
| 111 | $this->model->edit($this->param,['id'=>$this->param['id']]); | 111 | $this->model->edit($this->param,['id'=>$this->param['id']]); |
| 112 | - DB::commit(); | ||
| 113 | - }catch (\Exception $e){ | ||
| 114 | - DB::rollBack(); | ||
| 115 | - $this->fail('系统错误,请联系管理员'); | ||
| 116 | - } | 112 | +// DB::commit(); |
| 113 | +// }catch (\Exception $e){ | ||
| 114 | +// DB::rollBack(); | ||
| 115 | +// $this->fail('系统错误,请联系管理员'); | ||
| 116 | +// } | ||
| 117 | return $this->success(); | 117 | return $this->success(); |
| 118 | } | 118 | } |
| 119 | 119 |
-
请 注册 或 登录 后发表评论