prepare for v1.6.0-beta

This commit is contained in:
xiaomlove
2021-01-30 13:53:15 +08:00
parent 328e8ef953
commit 1ad59dd4cd
15 changed files with 151 additions and 66 deletions

View File

@@ -8,8 +8,6 @@ class DB
private static $instance;
private static $queries = [];
private $isConnected = false;
private function __construct()
@@ -55,8 +53,6 @@ class DB
$this->driver->query("SET collation_connection = 'utf8_general_ci'");
$this->driver->query("SET sql_mode=''");
$this->isConnected = true;
$log = json_encode(func_get_args());
do_log($log);
return true;
}
@@ -66,7 +62,6 @@ class DB
return null;
}
$config = config('database.mysql');
do_log(json_encode($config));
return $this->connect($config['host'], $config['username'], $config['password'], $config['database'], $config['port']);
}