作者 邓超

1

... ... @@ -293,7 +293,7 @@ function sync($email_id,$worker_id){
// 同步父文件夹
$mailServer->syncMail($email_id,$folder['id'],$folder['origin_folder']);
}else{
foreach ($folder as $item){
foreach ($folder['_child'] as $item){
// 同步子文件夹
$mailServer->syncMail($email_id,$item['id'],$item['origin_folder']);
}
... ...
... ... @@ -57,8 +57,8 @@ class DbPool {
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,
]
);
}catch (\PDOException $e){
logs($e->getMessage());
}catch (\Throwable $e){
logs($e->getMessage().$e->getTraceAsString());
}
}
... ... @@ -85,7 +85,7 @@ class DbPool {
try {
$query = $this->getClient()->prepare($sql);
$ret = $query->execute($params);
}catch (\PDOException $e){
}catch (\Throwable $e){
logs($e->getMessage().$e->getTraceAsString());
$ret = false;
}
... ...
... ... @@ -248,7 +248,7 @@ class RedisPool {
public function getClient(){
try {
$this->client->ping();
}catch (\RedisException $e){
}catch (\Throwable $e){
$this->conn();
}
return $this->client;
... ... @@ -287,7 +287,9 @@ class RedisPool {
try {
$this->client->ping();
$this->client->close();
}catch (\RedisException $e){}
}catch (\Throwable $e){
}
$this->client = null;
}
... ...