正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -265,6 +265,7 @@ class TranslateLogic extends BaseLogic | @@ -265,6 +265,7 @@ class TranslateLogic extends BaseLogic | ||
| 265 | $rs = $this->model->add($param); | 265 | $rs = $this->model->add($param); |
| 266 | }else{ | 266 | }else{ |
| 267 | if(!empty($data)){ | 267 | if(!empty($data)){ |
| 268 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND); | ||
| 268 | $data = json_encode($data,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); | 269 | $data = json_encode($data,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); |
| 269 | $rs = $this->model->edit(['data'=>$data],['language_id'=>$this->param['language_id'],'project_id'=>$this->user['project_id'],'url'=>$this->param['url'],'type'=>$this->param['type']]); | 270 | $rs = $this->model->edit(['data'=>$data],['language_id'=>$this->param['language_id'],'project_id'=>$this->user['project_id'],'url'=>$this->param['url'],'type'=>$this->param['type']]); |
| 270 | } | 271 | } |
-
请 注册 或 登录 后发表评论