...
|
...
|
@@ -240,6 +240,33 @@ function list_to_tree($list, $pk='id',$pid = 'pid',$child = '_child',$root=0,$em |
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* todo:: 立即开始同步邮件,非必要请不要手动调用,,系统有定时调用,
|
|
|
* @author:dc
|
|
|
* @time 2023/2/18 11:04
|
|
|
*/
|
|
|
function start_now_mail(){
|
|
|
$id = 0;
|
|
|
|
|
|
while (true){
|
|
|
$ids = db()->all('select `id` from `'.\Model\emailSql::$table.'` where `id` > '.$id.' order by `id` asc limit 1000 offset 0');
|
|
|
if(!$ids){
|
|
|
break;
|
|
|
}
|
|
|
foreach ($ids as $v){
|
|
|
$id = $v['id'];
|
|
|
redis()->rPush('sync_email_lists', $v['id']);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|