使用mysql本地地址试试pdo timeout问题

deploy
zcy 2021-03-01 12:02:49 +08:00
parent 444c525601
commit 536895457b
1 changed files with 8 additions and 0 deletions

View File

@ -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/";