正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -52,6 +52,8 @@ class TranslateLogic extends BaseLogic | @@ -52,6 +52,8 @@ 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 | // 原始校对程序 | 57 | // 原始校对程序 |
| 56 | $old_key = [];//key值组成数据 | 58 | $old_key = [];//key值组成数据 |
| 57 | $data_read = json_decode($info ? $info['data'] : '',JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); | 59 | $data_read = json_decode($info ? $info['data'] : '',JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); |
-
请 注册 或 登录 后发表评论