根据host来判断站点

hotfix/远程访问多媒体中心
尹诚诚 8 years ago
parent d8c687dde4
commit d9e8d3add2

@ -97,7 +97,7 @@ class Index extends CI_Controller {
//echo $js_content;
//把网页内容和css提交到purifycss处理
$purifycss_server='http://184.172.113.219:33033/';
if($this->config->item('site_code')=='gm'){
if(strpos($websitehost, 'chinarundreisen.com') !== false){//德语站点使用自己的css处理服务器
$purifycss_server='http://158.177.67.52:33033/';
}
$optimize_css = GET_HTTP($purifycss_server, 'html_source=' . urlencode($htmlsource) . '&html_css=' . urlencode($css_content), 'POST');

Loading…
Cancel
Save