|
@@ -70,6 +70,7 @@ class Mail { |
|
@@ -70,6 +70,7 @@ class Mail { |
70
|
'origin_folder' => $item,
|
70
|
'origin_folder' => $item,
|
71
|
'pid' => $pid
|
71
|
'pid' => $pid
|
72
|
]
|
72
|
]
|
|
|
73
|
+ ,false
|
73
|
);
|
74
|
);
|
74
|
}
|
75
|
}
|
75
|
}
|
76
|
}
|
|
@@ -103,7 +104,8 @@ class Mail { |
|
@@ -103,7 +104,8 @@ class Mail { |
103
|
$db->update(
|
104
|
$db->update(
|
104
|
folderSql::$table,
|
105
|
folderSql::$table,
|
105
|
['exsts'=>$status['EXISTS'],'unseen'=>$status['UNSEEN']??0],
|
106
|
['exsts'=>$status['EXISTS'],'unseen'=>$status['UNSEEN']??0],
|
106
|
- dbWhere(['id'=>$folder_id])
|
107
|
+ dbWhere(['id'=>$folder_id]),
|
|
|
108
|
+ false
|
107
|
);
|
109
|
);
|
108
|
|
110
|
|
109
|
|
111
|
|
|
@@ -206,6 +208,13 @@ class Mail { |
|
@@ -206,6 +208,13 @@ class Mail { |
206
|
}
|
208
|
}
|
207
|
$db->commit();
|
209
|
$db->commit();
|
208
|
|
210
|
|
|
|
211
|
+ // 更新数量
|
|
|
212
|
+ $db->update(
|
|
|
213
|
+ folderSql::$table,
|
|
|
214
|
+ ['last_sync_time' => time()],
|
|
|
215
|
+ dbWhere(['id'=>$folder_id]),
|
|
|
216
|
+ false
|
|
|
217
|
+ );
|
209
|
// 结束操作了
|
218
|
// 结束操作了
|
210
|
}
|
219
|
}
|
211
|
|
220
|
|