作者 lyh

gx

@@ -37,7 +37,7 @@ class TranslateLogic extends BaseLogic @@ -37,7 +37,7 @@ class TranslateLogic extends BaseLogic
37 if($this->param['url'] == 'All' || $this->param['url'] == 'other_all_text'){ 37 if($this->param['url'] == 'All' || $this->param['url'] == 'other_all_text'){
38 $info = $this->model->read(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]); 38 $info = $this->model->read(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]);
39 if(!empty($info) && !empty($info['data'])){ 39 if(!empty($info) && !empty($info['data'])){
40 - $translateInfo = json_decode($info['data'],JSON_UNESCAPED_UNICODE); 40 + $translateInfo = json_decode($info['data'],JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
41 foreach ($translateInfo as $k => $v){ 41 foreach ($translateInfo as $k => $v){
42 $data[] = [$k=>$v]; 42 $data[] = [$k=>$v];
43 } 43 }