作者 lyh

gx

@@ -52,7 +52,10 @@ class TranslateLogic extends BaseLogic @@ -52,7 +52,10 @@ class TranslateLogic extends BaseLogic
52 // 需要校对语种 52 // 需要校对语种
53 $languageInfo = $this->getLanguage($this->param['language_id']); 53 $languageInfo = $this->getLanguage($this->param['language_id']);
54 // 原始校对内容 54 // 原始校对内容
55 - $info = $this->model->with('translate_data')->where(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']])->first(); 55 + $param = $this->getRouteSource($this->param['url']);
  56 + $param['language_id'] = $this->param['language_id'];
  57 + $param['type'] = $this->param['type'];
  58 + $info = $this->model->with('translate_data')->where($param)->first();
56 //获取当前URl的所有文本内容 59 //获取当前URl的所有文本内容
57 $text_array = $this->getUrlRead($url); 60 $text_array = $this->getUrlRead($url);
58 // 原始校对程序 61 // 原始校对程序