作者 邓超

x

... ... @@ -4,18 +4,15 @@
include_once "../vendor/autoload.php";
$fid = 1;
// 查询不是预热邮箱
$eids = db()->all('SELECT id FROM emails LEFT JOIN hot_mail ON emails.email = hot_mail.email WHERE hot_mail.email is NULL AND pwd_error = 0');
while ($fid){
$fid = db()->value(\Model\folderSql::first([
'id.>' => $fid
],
'`id`'
));
if(!$fid){
break;
}
$eids = array_column($eids,'id');
foreach ($eids as $eid){
// 查询文件夹
$fids = db()->all(\Model\folderSql::all($eid,'`id`'));
array_map(function ($fid){
// 总数
$folder['exsts'] = db()->count(\Model\listsSql::listCount(
dbWhere(['folder_id'=> $fid, 'deleted' => 0])
... ... @@ -29,5 +26,7 @@ while ($fid){
db()->update(\Model\folderSql::$table,$folder,'`id` = '.$fid,false);
},array_column($fids,'id'));
}
_echo('完成');
... ...