作者 邓超

x

... ... @@ -41,7 +41,9 @@ class DbPool {
try {
// 判断是否链接中
$this->client->getAttribute(\PDO::ATTR_SERVER_INFO);
if($this->client->getAttribute(\PDO::ATTR_CONNECTION_STATUS)===false){
$this->connect();
}
}catch (\Throwable $e){
$this->connect();
}
... ...