作者 邓超

优化

... ... @@ -41,7 +41,12 @@ $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();
}else{
(new \Service\SyncMail($id))->setIsBody(false)->isUidAfter(2)->sync();
}
}catch (Throwable $e){
_echo($e->getMessage());
}
... ...