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