正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -46,10 +46,10 @@ class CustomTemplateLogic extends BaseLogic | @@ -46,10 +46,10 @@ class CustomTemplateLogic extends BaseLogic | ||
| 46 | */ | 46 | */ |
| 47 | public function customTemplateInfo(){ | 47 | public function customTemplateInfo(){ |
| 48 | $info = $this->model->read(['id'=>$this->param['id']]); | 48 | $info = $this->model->read(['id'=>$this->param['id']]); |
| 49 | - $info['image'] = getImageUrl($info['image'],$this->user['storage_type'],$this->user['project_location']); | ||
| 50 | if($info === false){ | 49 | if($info === false){ |
| 51 | $this->fail('当前数据不存在'); | 50 | $this->fail('当前数据不存在'); |
| 52 | } | 51 | } |
| 52 | + $info['image'] = getImageUrl($info['image'],$this->user['storage_type'],$this->user['project_location']); | ||
| 53 | if($info['is_visualization'] == 0 || $info['is_visualization'] == 1){ | 53 | if($info['is_visualization'] == 0 || $info['is_visualization'] == 1){ |
| 54 | $template_id = $this->getTemplateId(); | 54 | $template_id = $this->getTemplateId(); |
| 55 | $html = $this->getTemplateComHtml($info['html'],$info['html_style'],$template_id); | 55 | $html = $this->getTemplateComHtml($info['html'],$info['html_style'],$template_id); |
-
请 注册 或 登录 后发表评论