From 536895457b60207e8bf33a31d88848789d521c73 Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Mon, 1 Mar 2021 12:02:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8mysql=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E8=AF=95=E8=AF=95pdo=20timeout=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Config.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/App/Config.php b/App/Config.php index 5d4ac24..1e41537 100644 --- a/App/Config.php +++ b/App/Config.php @@ -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/";