作者 李宇航

合并分支 'lyh-server' 到 'master'

Lyh server



查看合并请求 !2035
@@ -54,7 +54,6 @@ class lyhDemo extends Command @@ -54,7 +54,6 @@ class lyhDemo extends Command
54 protected $description = '更新路由'; 54 protected $description = '更新路由';
55 55
56 public function handle(){ 56 public function handle(){
57 - $this->_actionTemplateMain();  
58 return true; 57 return true;
59 } 58 }
60 59
@@ -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 }