Commit fc85c82b authored by zhangkuanguang's avatar zhangkuanguang

芜湖放心看

parent c921cbe8
...@@ -138,12 +138,12 @@ if(GB_CITY == 'nj') ...@@ -138,12 +138,12 @@ if(GB_CITY == 'nj')
} }
else else
{ {
define('STATIC_SOURCE_URL', 'http://esf.fz.house365.com'); //define('STATIC_SOURCE_URL', 'http://esf.fz.house365.com');
define('STATIC_SOURCE_URL', 'http://'.$_SERVER['HTTP_HOST'].'/source');
define('GB_WO_HELP', "http://zsb.house365.com/help/"); define('GB_WO_HELP', "http://zsb.house365.com/help/");
} }
//define('STATIC_SOURCE_URL', 'http://esf.fz.house365.com');
//�Ͼ�վ�ŵ�����ַ //�Ͼ�վ�ŵ�����ַ
//define('GB_WS_URL' , "http://gl.zsb.house365.com"); //define('GB_WS_URL' , "http://gl.zsb.house365.com");
......
...@@ -71,7 +71,7 @@ class Minify_Controller_MinApp extends Minify_Controller_Base { ...@@ -71,7 +71,7 @@ class Minify_Controller_MinApp extends Minify_Controller_Base {
continue; continue;
} }
if (0 === strpos($file, '//')) { if (0 === strpos($file, '//')) {
if(strpos($_SERVER['HTTP_HOST'],'nj.zsb')!==false){ if(strpos($_SERVER['HTTP_HOST'],'.zsb.')!==false){
$file = $_SERVER['DOCUMENT_ROOT'] .'/source'. substr($file, 1); $file = $_SERVER['DOCUMENT_ROOT'] .'/source'. substr($file, 1);
}else{ }else{
$file = $_SERVER['DOCUMENT_ROOT'] . substr($file, 1); $file = $_SERVER['DOCUMENT_ROOT'] . substr($file, 1);
...@@ -155,7 +155,7 @@ class Minify_Controller_MinApp extends Minify_Controller_Base { ...@@ -155,7 +155,7 @@ class Minify_Controller_MinApp extends Minify_Controller_Base {
foreach ($files as $file) { foreach ($files as $file) {
$uri = $base . $file; $uri = $base . $file;
if(strpos($_SERVER['HTTP_HOST'],'nj.zsb') !== false){ if(strpos($_SERVER['HTTP_HOST'],'.zsb.') !== false){
$file = $_SERVER['DOCUMENT_ROOT'] .'/source/'.$file; $file = $_SERVER['DOCUMENT_ROOT'] .'/source/'.$file;
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment