正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -277,8 +277,8 @@ class TranslateLogic extends BaseLogic | @@ -277,8 +277,8 @@ class TranslateLogic extends BaseLogic | ||
| 277 | if($this->param['url'] == 'other_all_text'){ | 277 | if($this->param['url'] == 'other_all_text'){ |
| 278 | $this->param['language_id'] = 0; | 278 | $this->param['language_id'] = 0; |
| 279 | } | 279 | } |
| 280 | - DB::beginTransaction(); | ||
| 281 | - try { | 280 | +// DB::beginTransaction(); |
| 281 | +// try { | ||
| 282 | $info = $this->model->read(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'project_id'=>$this->user['project_id'],'type'=>$this->param['type']]); | 282 | $info = $this->model->read(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'project_id'=>$this->user['project_id'],'type'=>$this->param['type']]); |
| 283 | if($info === false){ | 283 | if($info === false){ |
| 284 | $sourceInfo = $this->getRouteSource($sendData['new_route']); | 284 | $sourceInfo = $this->getRouteSource($sendData['new_route']); |
| @@ -303,11 +303,11 @@ class TranslateLogic extends BaseLogic | @@ -303,11 +303,11 @@ class TranslateLogic extends BaseLogic | ||
| 303 | //写日志 | 303 | //写日志 |
| 304 | $userLogModel = new UserLog(); | 304 | $userLogModel = new UserLog(); |
| 305 | $userLogModel->add(['model'=>'translate/save','remark'=>json_encode($this->param,true),'type'=>0,'operator_id'=>$this->user['id'],'project_id'=>$this->user['project_id']]); | 305 | $userLogModel->add(['model'=>'translate/save','remark'=>json_encode($this->param,true),'type'=>0,'operator_id'=>$this->user['id'],'project_id'=>$this->user['project_id']]); |
| 306 | - DB::commit(); | ||
| 307 | - }catch (\Exception $e){ | ||
| 308 | - DB::rollback(); | ||
| 309 | - $this->fail('系统错误请联系管理员'); | ||
| 310 | - } | 306 | +// DB::commit(); |
| 307 | +// }catch (\Exception $e){ | ||
| 308 | +// DB::rollback(); | ||
| 309 | +// $this->fail('系统错误请联系管理员'); | ||
| 310 | +// } | ||
| 311 | $this->sendMessage($sendData); | 311 | $this->sendMessage($sendData); |
| 312 | return $this->success(); | 312 | return $this->success(); |
| 313 | } | 313 | } |
-
请 注册 或 登录 后发表评论