使用mysql本地地址试试pdo timeout问题
parent
444c525601
commit
536895457b
|
@ -45,6 +45,14 @@ class Config
|
|||
return "/wapi/";
|
||||
}
|
||||
}
|
||||
static public function DBUrl() {
|
||||
if ( "0.0.0.0" == $_SERVER['SERVER_NAME']){
|
||||
return "49.235.25.67";
|
||||
}
|
||||
if("testingcloud.club" == $_SERVER['SERVER_NAME']){
|
||||
return "127.0.0.1";
|
||||
}
|
||||
}
|
||||
static public function ServerUrl() {
|
||||
if ( "0.0.0.0" == $_SERVER['SERVER_NAME']){
|
||||
return "http://127.0.0.1/api/public/";
|
||||
|
|
Loading…
Reference in New Issue