正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -273,6 +273,7 @@ class TranslateLogic extends BaseLogic | @@ -273,6 +273,7 @@ class TranslateLogic extends BaseLogic | ||
| 273 | } | 273 | } |
| 274 | } | 274 | } |
| 275 | } | 275 | } |
| 276 | + $this->param['data'] = $data; | ||
| 276 | } | 277 | } |
| 277 | try { | 278 | try { |
| 278 | $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']]); |
| @@ -294,7 +295,7 @@ class TranslateLogic extends BaseLogic | @@ -294,7 +295,7 @@ class TranslateLogic extends BaseLogic | ||
| 294 | } | 295 | } |
| 295 | //写日志 | 296 | //写日志 |
| 296 | $userLogModel = new UserLog(); | 297 | $userLogModel = new UserLog(); |
| 297 | - $userLogModel->add(['model'=>'translate/save','remark'=>$data,'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']]); |
| 298 | }catch (\Exception $e){ | 299 | }catch (\Exception $e){ |
| 299 | $this->fail('系统错误请联系管理员'); | 300 | $this->fail('系统错误请联系管理员'); |
| 300 | } | 301 | } |
-
请 注册 或 登录 后发表评论