作者 邓超

1

... ... @@ -81,10 +81,14 @@ class DbPool {
$timer = microtime(true);
}
$query = $this->getClient()->prepare($sql);
try {
$query = $this->getClient()->prepare($sql);
$ret = $query->execute($params);
}catch (\PDOException $e){
logs($e->getMessage().$e->getTraceAsString());
$ret = false;
}
if(APP_DEBUG){
... ...