|
...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
//error_reporting();
|
|
|
|
|
|
|
|
use Swlib\SaberGM;
|
|
|
|
use Swoole\Process;
|
|
|
|
|
|
|
|
// 表示同步ai邮件脚本
|
|
...
|
...
|
@@ -42,6 +43,19 @@ function start(){ |
|
|
|
co::sleep(1);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(redis()->add('mailbox_status_setlock',1,120)){
|
|
|
|
$data = [];
|
|
|
|
foreach (range(1,100) as $v){
|
|
|
|
$data[$v] = redis()->lPop('fob_mailbox_status_set');
|
|
|
|
if(!$data[$v]){ unset($data[$v]); break;}
|
|
|
|
}
|
|
|
|
SaberGM::post(SUPER_DATA2_HOST . 'api/mailbox_status_sets', [
|
|
|
|
'data' => $data
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 需要同步的id
|
|
|
|
$id = redis()->lPop('sync_email_lists');
|
|
|
|
|
...
|
...
|
|