|
...
|
...
|
@@ -33,7 +33,10 @@ class TranslateLogic extends BaseLogic |
|
|
|
public function getTranslateList(){
|
|
|
|
if($this->param['url'] == 'All'){
|
|
|
|
$info = $this->model->read(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]);
|
|
|
|
$data = json_decode($info['data'],true);
|
|
|
|
$data = [];
|
|
|
|
if(!empty($info)){
|
|
|
|
$data = json_decode($info['data'],true);
|
|
|
|
}
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
$url = $this->user['domain'].(($this->param['url'] != '/') ? $this->param['url'] : '');
|
|
...
|
...
|
@@ -78,7 +81,10 @@ class TranslateLogic extends BaseLogic |
|
|
|
public function getTranslateImageList(){
|
|
|
|
if($this->param['url'] == 'All'){
|
|
|
|
$info = $this->model->read(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]);
|
|
|
|
$data = json_decode($info['data'],true);
|
|
|
|
$data = [];
|
|
|
|
if(!empty($info)){
|
|
|
|
$data = json_decode($info['data'],true);
|
|
|
|
}
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
$url = $this->user['domain'].(($this->param['url'] != '/') ? $this->param['url'] : '');
|
...
|
...
|
|