perform install test

This commit is contained in:
xiaomlove
2021-01-27 17:50:24 +08:00
parent 5c90a962e7
commit 59b7e573a2
4 changed files with 111 additions and 112 deletions

View File

@@ -40,13 +40,11 @@ class DB
return self::$instance = $instance;
}
public function connect($host, $username, $password, $database, $port)
{
if (!$this->isConnected()) {
$this->driver->connect($host, $username, $password, $database, $port);
$this->isConnected = true;
}
$this->driver->connect($host, $username, $password, $database, $port);
$this->isConnected = true;
do_log("do mysql_connect with: " . json_encode(func_get_args()));
return true;
}