|
...
|
...
|
@@ -125,7 +125,10 @@ class TranslateLogic extends BaseLogic |
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
$url = $this->user['domain'].(($this->param['url'] != '/') ? $this->param['url'] : '');
|
|
|
|
$info = $this->model->with('translate_data')->where(['url'=>str_replace_url($this->param['url']),'language_id'=>$this->param['language_id'],'type'=>$this->param['type']])->first();
|
|
|
|
$param = $this->getRouteSource($this->param['url']);
|
|
|
|
$param['language_id'] = $this->param['language_id'];
|
|
|
|
$param['type'] = $this->param['type'];
|
|
|
|
$info = $this->model->with('translate_data')->where($param)->first();
|
|
|
|
$data = [];
|
|
|
|
if(empty($info)){
|
|
|
|
$new_list = $this->getUrlImageRead($url);
|
...
|
...
|
|