正在显示
1 个修改的文件
包含
5 行增加
和
7 行删除
| @@ -107,13 +107,11 @@ class BTemplateLogic extends BaseLogic | @@ -107,13 +107,11 @@ class BTemplateLogic extends BaseLogic | ||
| 107 | ); | 107 | ); |
| 108 | //字符串截取 | 108 | //字符串截取 |
| 109 | $this->param['head_html'] = characterTruncation($this->param['html'],'/<header\b[^>]*>(.*?)<\/header>/s'); | 109 | $this->param['head_html'] = characterTruncation($this->param['html'],'/<header\b[^>]*>(.*?)<\/header>/s'); |
| 110 | - var_dump($this->param['head_html']); | ||
| 111 | - die(); | ||
| 112 | -// $this->param['main_html'] = characterTruncation($this->param['html'],'/<main[^>]*>(.*?)<\/main>/'); | ||
| 113 | -// $this->param['footer_html'] = characterTruncation($this->param['html'],'/<footer[^>]*>(.*?)<\/footer>/'); | ||
| 114 | -// $this->param['head_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-header">(.*?)<\/style>/'); | ||
| 115 | -// $this->param['main_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-style">(.*?)<\/style>/'); | ||
| 116 | -// $this->param['footer_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-footer">(.*?)<\/style>/'); | 110 | + $this->param['main_html'] = characterTruncation($this->param['html'],'/<main\b[^>]*>(.*?)<\/main>/s'); |
| 111 | + $this->param['footer_html'] = characterTruncation($this->param['html'],'/<footer\b[^>]*>(.*?)<\/footer>/s'); | ||
| 112 | + $this->param['head_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-header">(.*?)<\/style>/s'); | ||
| 113 | + $this->param['main_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-style">(.*?)<\/style>/s'); | ||
| 114 | + $this->param['footer_css'] = characterTruncation($this->param['html'],'/<style id="vvvebjs-footer">(.*?)<\/style>/s'); | ||
| 117 | if($info === false){ | 115 | if($info === false){ |
| 118 | $this->param['project_id'] = $this->user['project_id']; | 116 | $this->param['project_id'] = $this->user['project_id']; |
| 119 | $rs = $this->model->add($this->param); | 117 | $rs = $this->model->add($this->param); |
-
请 注册 或 登录 后发表评论