正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -82,7 +82,7 @@ class TranslateLogic extends BaseLogic | @@ -82,7 +82,7 @@ class TranslateLogic extends BaseLogic | ||
| 82 | if($this->param['url'] == 'All'){ | 82 | if($this->param['url'] == 'All'){ |
| 83 | $info = $this->model->read(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]); | 83 | $info = $this->model->read(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']]); |
| 84 | $data = []; | 84 | $data = []; |
| 85 | - if(!empty($info)){ | 85 | + if(!empty($info) && !empty($info['data'])){ |
| 86 | $data = json_decode($info['data'],true); | 86 | $data = json_decode($info['data'],true); |
| 87 | } | 87 | } |
| 88 | return $this->success($data); | 88 | return $this->success($data); |
-
请 注册 或 登录 后发表评论