作者 lyh

gx

@@ -441,6 +441,6 @@ function characterTruncation($string,$pattern){ @@ -441,6 +441,6 @@ function characterTruncation($string,$pattern){
441 $result = $matches[0]; 441 $result = $matches[0];
442 return $result; // 输出:这是footer标签的内容 442 return $result; // 输出:这是footer标签的内容
443 } else { 443 } else {
444 - return []; 444 + return '';
445 } 445 }
446 } 446 }
@@ -109,8 +109,6 @@ class BTemplateLogic extends BaseLogic @@ -109,8 +109,6 @@ class BTemplateLogic extends BaseLogic
109 //字符串截取 109 //字符串截取
110 $this->StringProcessing(); 110 $this->StringProcessing();
111 $this->param['project_id'] = $this->user['project_id']; 111 $this->param['project_id'] = $this->user['project_id'];
112 - var_dump($this->param);  
113 - die();  
114 $rs = $this->model->add($this->param); 112 $rs = $this->model->add($this->param);
115 }else{ 113 }else{
116 $this->StringProcessing(); 114 $this->StringProcessing();
@@ -135,7 +133,7 @@ class BTemplateLogic extends BaseLogic @@ -135,7 +133,7 @@ class BTemplateLogic extends BaseLogic
135 $this->param['main_html'] = characterTruncation($this->param['html'],'/<main\b[^>]*>(.*?)<\/main>/s'); 133 $this->param['main_html'] = characterTruncation($this->param['html'],'/<main\b[^>]*>(.*?)<\/main>/s');
136 $this->param['footer_html'] = characterTruncation($this->param['html'],'/<footer\b[^>]*>(.*?)<\/footer>/s'); 134 $this->param['footer_html'] = characterTruncation($this->param['html'],'/<footer\b[^>]*>(.*?)<\/footer>/s');
137 $this->param['head_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-header">(.*?)<\/style>/s'); 135 $this->param['head_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-header">(.*?)<\/style>/s');
138 - $this->param['main_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-style">(.*?)<\/style>/s'); 136 + $this->param['main_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-styles">(.*?)<\/style>/s');
139 $this->param['footer_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-footer">(.*?)<\/style>/s'); 137 $this->param['footer_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-footer">(.*?)<\/style>/s');
140 } 138 }
141 } 139 }