作者 邓超

优化

... ... @@ -77,7 +77,7 @@ function start(){
}
}catch (Throwable $e){
if(!strpos($e->getMessage(),'read time out') && !strpos($e->getMessage(),'DNS Lookup resolve failed') && !strpos($e->getMessage(),'Connection timed out')){
if(!strpos($e->getMessage(),'ead time out') && !strpos($e->getMessage(),'NS Lookup resolve failed') && !strpos($e->getMessage(),'onnection timed out')){
logs('sync : '.($email['email']??'').' '.$e->getMessage());
}
}
... ...
... ... @@ -42,7 +42,7 @@ $pm->addBatch(3,function (\Swoole\Process\Pool $pool, int $worker_id){
try{
// 开始同步
if(redis()->add('sync_my_day:'.date('d').'_'.$id,$id,86400)){
(new \Service\SyncMail('69125'))->setIsBody(false)->sync();
(new \Service\SyncMail($id))->setIsBody(false)->sync();
}else{
(new \Service\SyncMail($id))->setIsBody(false)->isUidAfter(2)->sync();
}
... ...