正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -102,7 +102,7 @@ function sync($email_id){ | @@ -102,7 +102,7 @@ function sync($email_id){ | ||
102 | $page = 0; | 102 | $page = 0; |
103 | $db = db(); | 103 | $db = db(); |
104 | while (1){ | 104 | while (1){ |
105 | - $ids = $db->all("select `id`,`uid` from ".\Model\listsSql::$table." where `email_id` = {$email_id} and `folder_id` = {$folder_id} limit 100 offset ".($page*100)); | 105 | + $ids = $db->all("select `id`,`uid` from ".\Model\listsSql::$table." where `email_id` = {$email_id} and `folder_id` = {$folder_id} and `udate` < ".strtotime("-5 day")." limit 100 offset ".($page*100)); |
106 | $page++; | 106 | $page++; |
107 | if($ids){ | 107 | if($ids){ |
108 | foreach ($ids as $id){ | 108 | foreach ($ids as $id){ |
-
请 注册 或 登录 后发表评论