正在显示
3 个修改的文件
包含
8 行增加
和
6 行删除
@@ -293,7 +293,7 @@ function sync($email_id,$worker_id){ | @@ -293,7 +293,7 @@ function sync($email_id,$worker_id){ | ||
293 | // 同步父文件夹 | 293 | // 同步父文件夹 |
294 | $mailServer->syncMail($email_id,$folder['id'],$folder['origin_folder']); | 294 | $mailServer->syncMail($email_id,$folder['id'],$folder['origin_folder']); |
295 | }else{ | 295 | }else{ |
296 | - foreach ($folder as $item){ | 296 | + foreach ($folder['_child'] as $item){ |
297 | // 同步子文件夹 | 297 | // 同步子文件夹 |
298 | $mailServer->syncMail($email_id,$item['id'],$item['origin_folder']); | 298 | $mailServer->syncMail($email_id,$item['id'],$item['origin_folder']); |
299 | } | 299 | } |
@@ -57,8 +57,8 @@ class DbPool { | @@ -57,8 +57,8 @@ class DbPool { | ||
57 | \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, | 57 | \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, |
58 | ] | 58 | ] |
59 | ); | 59 | ); |
60 | - }catch (\PDOException $e){ | ||
61 | - logs($e->getMessage()); | 60 | + }catch (\Throwable $e){ |
61 | + logs($e->getMessage().$e->getTraceAsString()); | ||
62 | } | 62 | } |
63 | } | 63 | } |
64 | 64 | ||
@@ -85,7 +85,7 @@ class DbPool { | @@ -85,7 +85,7 @@ class DbPool { | ||
85 | try { | 85 | try { |
86 | $query = $this->getClient()->prepare($sql); | 86 | $query = $this->getClient()->prepare($sql); |
87 | $ret = $query->execute($params); | 87 | $ret = $query->execute($params); |
88 | - }catch (\PDOException $e){ | 88 | + }catch (\Throwable $e){ |
89 | logs($e->getMessage().$e->getTraceAsString()); | 89 | logs($e->getMessage().$e->getTraceAsString()); |
90 | $ret = false; | 90 | $ret = false; |
91 | } | 91 | } |
@@ -248,7 +248,7 @@ class RedisPool { | @@ -248,7 +248,7 @@ class RedisPool { | ||
248 | public function getClient(){ | 248 | public function getClient(){ |
249 | try { | 249 | try { |
250 | $this->client->ping(); | 250 | $this->client->ping(); |
251 | - }catch (\RedisException $e){ | 251 | + }catch (\Throwable $e){ |
252 | $this->conn(); | 252 | $this->conn(); |
253 | } | 253 | } |
254 | return $this->client; | 254 | return $this->client; |
@@ -287,7 +287,9 @@ class RedisPool { | @@ -287,7 +287,9 @@ class RedisPool { | ||
287 | try { | 287 | try { |
288 | $this->client->ping(); | 288 | $this->client->ping(); |
289 | $this->client->close(); | 289 | $this->client->close(); |
290 | - }catch (\RedisException $e){} | 290 | + }catch (\Throwable $e){ |
291 | + | ||
292 | + } | ||
291 | 293 | ||
292 | $this->client = null; | 294 | $this->client = null; |
293 | } | 295 | } |
-
请 注册 或 登录 后发表评论