正在显示
1 个修改的文件
包含
1 行增加
和
4 行删除
| @@ -52,10 +52,7 @@ class CustomTemplateLogic extends BaseLogic | @@ -52,10 +52,7 @@ class CustomTemplateLogic extends BaseLogic | ||
| 52 | $info['image'] = getImageUrl($info['image'],$this->user['storage_type'],$this->user['project_location']); | 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 | - if(empty($info['html'])){ | ||
| 56 | - $info['html'] = $info['text']; | ||
| 57 | - } | ||
| 58 | - $html = $this->getTemplateComHtml($info['html'],$info['html_style'],$template_id); | 55 | + $html = $this->getTemplateComHtml(empty($info['html']) ? $info['text'] : $info['html'],$info['html_style'],$template_id); |
| 59 | $info['html'] = $this->getHeadFooter($html); | 56 | $info['html'] = $this->getHeadFooter($html); |
| 60 | } | 57 | } |
| 61 | return $this->success($info); | 58 | return $this->success($info); |
-
请 注册 或 登录 后发表评论