作者 lyh

gx脚本

@@ -52,6 +52,9 @@ class CustomTemplateLogic extends BaseLogic @@ -52,6 +52,9 @@ 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 + }
55 $html = $this->getTemplateComHtml($info['html'],$info['html_style'],$template_id); 58 $html = $this->getTemplateComHtml($info['html'],$info['html_style'],$template_id);
56 $info['html'] = $this->getHeadFooter($html); 59 $info['html'] = $this->getHeadFooter($html);
57 } 60 }
@@ -555,6 +558,7 @@ class CustomTemplateLogic extends BaseLogic @@ -555,6 +558,7 @@ class CustomTemplateLogic extends BaseLogic
555 'is_visualization' => $info['is_visualization'], 558 'is_visualization' => $info['is_visualization'],
556 'created_at' => date('Y-m-d H:i:s'), 559 'created_at' => date('Y-m-d H:i:s'),
557 'updated_at' => date('Y-m-d H:i:s'), 560 'updated_at' => date('Y-m-d H:i:s'),
  561 + 'text'=>$info['text'] ?? '',
558 ]; 562 ];
559 } 563 }
560 } 564 }