正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -275,7 +275,7 @@ class TranslateLogic extends BaseLogic | @@ -275,7 +275,7 @@ class TranslateLogic extends BaseLogic | ||
| 275 | } | 275 | } |
| 276 | $this->param['data'] = $data; | 276 | $this->param['data'] = $data; |
| 277 | } | 277 | } |
| 278 | -// try { | 278 | + try { |
| 279 | $info = $this->model->read(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'project_id'=>$this->user['project_id'],'type'=>$this->param['type']]); | 279 | $info = $this->model->read(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'project_id'=>$this->user['project_id'],'type'=>$this->param['type']]); |
| 280 | if($info === false){ | 280 | if($info === false){ |
| 281 | $param = [ | 281 | $param = [ |
| @@ -296,9 +296,9 @@ class TranslateLogic extends BaseLogic | @@ -296,9 +296,9 @@ class TranslateLogic extends BaseLogic | ||
| 296 | //写日志 | 296 | //写日志 |
| 297 | $userLogModel = new UserLog(); | 297 | $userLogModel = new UserLog(); |
| 298 | $userLogModel->add(['model'=>'translate/save','remark'=>json_encode($this->param,true),'type'=>0,'operator_id'=>$this->user['id'],'project_id'=>$this->user['project_id']]); | 298 | $userLogModel->add(['model'=>'translate/save','remark'=>json_encode($this->param,true),'type'=>0,'operator_id'=>$this->user['id'],'project_id'=>$this->user['project_id']]); |
| 299 | -// }catch (\Exception $e){ | ||
| 300 | -// $this->fail('系统错误请联系管理员'); | ||
| 301 | -// } | 299 | + }catch (\Exception $e){ |
| 300 | + $this->fail('系统错误请联系管理员'); | ||
| 301 | + } | ||
| 302 | $this->handleRoute($this->param['url']); | 302 | $this->handleRoute($this->param['url']); |
| 303 | return $this->success(); | 303 | return $this->success(); |
| 304 | } | 304 | } |
-
请 注册 或 登录 后发表评论