...
|
...
|
@@ -45,7 +45,7 @@ class Db { |
|
|
public function __construct()
|
|
|
{
|
|
|
|
|
|
$this->connect();
|
|
|
// $this->connect();
|
|
|
|
|
|
}
|
|
|
|
...
|
...
|
@@ -97,11 +97,11 @@ class Db { |
|
|
static::$instance = new Db();
|
|
|
}
|
|
|
|
|
|
if(!static::$instance->ping()){
|
|
|
static::$instance->close();
|
|
|
|
|
|
static::$instance = new Db();
|
|
|
}
|
|
|
// if(!static::$instance->ping()){
|
|
|
// static::$instance->close();
|
|
|
//
|
|
|
// static::$instance = new Db();
|
|
|
// }
|
|
|
|
|
|
return static::$instance;
|
|
|
}
|
...
|
...
|
|