注释掉调试代码

hotfix/远程访问多媒体中心
cyc 6 years ago
parent ed0266feb8
commit d4e17c5266

@ -80,7 +80,7 @@ class Index extends CI_Controller
//$js_content.= $link_script->innertext;//js的内容 //$js_content.= $link_script->innertext;//js的内容
// $js_content.= $link_script;//js的内容包含<script> // $js_content.= $link_script;//js的内容包含<script>
//含有$表示调用了jquery的函数添加延迟加载defer //含有$表示调用了jquery的函数添加延迟加载defer
//包含gtm的js引入就跳出循环 //包含gtm的js引入就跳出本次循环
if(strpos($link_script, 'https://www.googletagmanager.com/gtm.js')){ if(strpos($link_script, 'https://www.googletagmanager.com/gtm.js')){
continue; continue;
} }

@ -75,7 +75,7 @@ class Index_gm extends CI_Controller
} }
$css_content .= $get_http_temp; $css_content .= $get_http_temp;
} }
//找出所有style写的内置样式 //找出所有style写的内置样式
foreach ($this->html_object->find('style') as $style_css) { foreach ($this->html_object->find('style') as $style_css) {
if ($style_css->type == "text/css") { if ($style_css->type == "text/css") {
@ -98,7 +98,7 @@ class Index_gm extends CI_Controller
//$js_content.= $link_script->innertext;//js的内容 //$js_content.= $link_script->innertext;//js的内容
// $js_content.= $link_script;//js的内容包含<script> // $js_content.= $link_script;//js的内容包含<script>
//含有$表示调用了jquery的函数添加延迟加载defer //含有$表示调用了jquery的函数添加延迟加载defer
//包含gtm的js引入就跳出循环 //包含gtm的js引入就跳出本次循环
if(strpos($link_script, 'https://www.googletagmanager.com/gtm.js')){ if(strpos($link_script, 'https://www.googletagmanager.com/gtm.js')){
continue; continue;
} }
@ -326,8 +326,6 @@ class Index_gm extends CI_Controller
$css_content .= $style->innertext; $css_content .= $style->innertext;
$style->outertext = ''; $style->outertext = '';
} }
print_r($this->html_object->find('style'));
die();
//把网页内容和css提交到purifycss处理 //把网页内容和css提交到purifycss处理
$purifycss_server = 'http://158.177.67.52:33033/'; $purifycss_server = 'http://158.177.67.52:33033/';

Loading…
Cancel
Save