作者 lyh

gx脚本demo

@@ -38,6 +38,9 @@ class TranslateLogic extends BaseLogic @@ -38,6 +38,9 @@ class TranslateLogic extends BaseLogic
38 public function getTranslateList(){ 38 public function getTranslateList(){
39 $data = []; 39 $data = [];
40 if($this->param['url'] == 'All' || $this->param['url'] == 'other_all_text'){ 40 if($this->param['url'] == 'All' || $this->param['url'] == 'other_all_text'){
  41 + if($this->param['url'] == 'other_all_text'){
  42 + $this->param['language_id'] = 0;
  43 + }
41 $info = $this->model->with('translate_data')->where(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']])->first(); 44 $info = $this->model->with('translate_data')->where(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']])->first();
42 if(!empty($info) && !empty($info['translate_data'])){ 45 if(!empty($info) && !empty($info['translate_data'])){
43 $translateInfo = json_decode($info['translate_data']['data'],JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); 46 $translateInfo = json_decode($info['translate_data']['data'],JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);