正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -77,7 +77,7 @@ function start(){ | @@ -77,7 +77,7 @@ function start(){ | ||
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | }catch (Throwable $e){ | 79 | }catch (Throwable $e){ |
| 80 | - if(!strpos($e->getMessage(),'read time out') && !strpos($e->getMessage(),'DNS Lookup resolve failed') && !strpos($e->getMessage(),'Connection timed out')){ | 80 | + if(!strpos($e->getMessage(),'ead time out') && !strpos($e->getMessage(),'NS Lookup resolve failed') && !strpos($e->getMessage(),'onnection timed out')){ |
| 81 | logs('sync : '.($email['email']??'').' '.$e->getMessage()); | 81 | logs('sync : '.($email['email']??'').' '.$e->getMessage()); |
| 82 | } | 82 | } |
| 83 | } | 83 | } |
| @@ -42,7 +42,7 @@ $pm->addBatch(3,function (\Swoole\Process\Pool $pool, int $worker_id){ | @@ -42,7 +42,7 @@ $pm->addBatch(3,function (\Swoole\Process\Pool $pool, int $worker_id){ | ||
| 42 | try{ | 42 | try{ |
| 43 | // 开始同步 | 43 | // 开始同步 |
| 44 | if(redis()->add('sync_my_day:'.date('d').'_'.$id,$id,86400)){ | 44 | if(redis()->add('sync_my_day:'.date('d').'_'.$id,$id,86400)){ |
| 45 | - (new \Service\SyncMail('69125'))->setIsBody(false)->sync(); | 45 | + (new \Service\SyncMail($id))->setIsBody(false)->sync(); |
| 46 | }else{ | 46 | }else{ |
| 47 | (new \Service\SyncMail($id))->setIsBody(false)->isUidAfter(2)->sync(); | 47 | (new \Service\SyncMail($id))->setIsBody(false)->isUidAfter(2)->sync(); |
| 48 | } | 48 | } |
-
请 注册 或 登录 后发表评论