正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -52,8 +52,9 @@ class TranslateLogic extends BaseLogic | @@ -52,8 +52,9 @@ class TranslateLogic extends BaseLogic | ||
| 52 | $info = $this->model->read(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]); | 52 | $info = $this->model->read(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]); |
| 53 | //获取当前URl的所有文本内容 | 53 | //获取当前URl的所有文本内容 |
| 54 | $text_array = $this->getUrlRead($url); | 54 | $text_array = $this->getUrlRead($url); |
| 55 | - $json_text_arr = json_encode($text_array,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); | ||
| 56 | - $text_array = json_decode($json_text_arr,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); | 55 | + if($this->user['project_id'] == 655){ |
| 56 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND); | ||
| 57 | + } | ||
| 57 | // 原始校对程序 | 58 | // 原始校对程序 |
| 58 | $old_key = [];//key值组成数据 | 59 | $old_key = [];//key值组成数据 |
| 59 | $data_read = json_decode($info ? $info['data'] : '',JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); | 60 | $data_read = json_decode($info ? $info['data'] : '',JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); |
-
请 注册 或 登录 后发表评论