|
...
|
...
|
@@ -52,10 +52,7 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
$info['image'] = getImageUrl($info['image'],$this->user['storage_type'],$this->user['project_location']);
|
|
|
|
if($info['is_visualization'] == 0 || $info['is_visualization'] == 1){
|
|
|
|
$template_id = $this->getTemplateId();
|
|
|
|
if(empty($info['html'])){
|
|
|
|
$info['html'] = $info['text'];
|
|
|
|
}
|
|
|
|
$html = $this->getTemplateComHtml($info['html'],$info['html_style'],$template_id);
|
|
|
|
$html = $this->getTemplateComHtml(empty($info['html']) ? $info['text'] : $info['html'],$info['html_style'],$template_id);
|
|
|
|
$info['html'] = $this->getHeadFooter($html);
|
|
|
|
}
|
|
|
|
return $this->success($info);
|
...
|
...
|
|