Commit 650f3f3b authored by zhz's avatar zhz

server_name

parent 7e5e9151
...@@ -94,7 +94,7 @@ class Common ...@@ -94,7 +94,7 @@ class Common
public static function getBaseUrl(){ public static function getBaseUrl(){
$prefix = 'http'; $prefix = 'http';
if(self::is_https()){ if(self::is_https() || $_SERVER['SERVER_NAME'] == 'apiceshi.shenbd.com'){
$prefix = 'https'; $prefix = 'https';
} }
$url = $prefix.'://'.$_SERVER['SERVER_NAME']; $url = $prefix.'://'.$_SERVER['SERVER_NAME'];
......
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