|
...
|
...
|
@@ -34,8 +34,11 @@ class TranslateLogic extends BaseLogic |
|
|
|
if($this->param['url'] == 'All'){
|
|
|
|
$info = $this->model->read(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]);
|
|
|
|
$data = [];
|
|
|
|
if(!empty($info)){
|
|
|
|
$data = json_decode($info['data'],true);
|
|
|
|
if(!empty($info) && !empty($info['data'])){
|
|
|
|
$translateInfo = json_decode($info['data'],true);
|
|
|
|
foreach ($translateInfo as $k => $v){
|
|
|
|
$data[] = [$k=>$v];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
...
|
...
|
@@ -83,7 +86,10 @@ class TranslateLogic extends BaseLogic |
|
|
|
$info = $this->model->read(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]);
|
|
|
|
$data = [];
|
|
|
|
if(!empty($info) && !empty($info['data'])){
|
|
|
|
$data = json_decode($info['data'],true);
|
|
|
|
$translateInfo = json_decode($info['data'],true);
|
|
|
|
foreach ($translateInfo as $k => $v){
|
|
|
|
$data[] = [$k=>$v];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
...
|
...
|
|