作者 邓超

1

... ... @@ -3,5 +3,7 @@
include_once __DIR__."/../vendor/autoload.php";
$ids = db()->all('select `id` from `'.\Model\emailSql::$table.'` limit 1000 offset 0');
print_r($ids);
\ No newline at end of file
//$ids = db()->all('select `id` from `'.\Model\emailSql::$table.'` limit 1000 offset 0');
//print_r($ids);
start_now_mail();
\ No newline at end of file
... ...
... ... @@ -70,6 +70,7 @@ class Mail {
'origin_folder' => $item,
'pid' => $pid
]
,false
);
}
}
... ... @@ -103,7 +104,8 @@ class Mail {
$db->update(
folderSql::$table,
['exsts'=>$status['EXISTS'],'unseen'=>$status['UNSEEN']??0],
dbWhere(['id'=>$folder_id])
dbWhere(['id'=>$folder_id]),
false
);
... ... @@ -206,6 +208,13 @@ class Mail {
}
$db->commit();
// 更新数量
$db->update(
folderSql::$table,
['last_sync_time' => time()],
dbWhere(['id'=>$folder_id]),
false
);
// 结束操作了
}
... ...