...
|
...
|
@@ -198,9 +198,14 @@ class Mail { |
|
|
}
|
|
|
|
|
|
// 更新数量
|
|
|
$upFolderData = ['exsts'=>$status['EXISTS'],'last_sync_time' => time()];
|
|
|
// 谷歌 不返未读数量 谢特
|
|
|
if(isset($status['UNSEEN'])){
|
|
|
$upFolderData['unseen'] = $status['UNSEEN'];
|
|
|
}
|
|
|
$db->update(
|
|
|
folderSql::$table,
|
|
|
['exsts'=>$status['EXISTS'],'unseen'=>$status['UNSEEN']??0],
|
|
|
$upFolderData,
|
|
|
dbWhere(['id'=>$folder_id]),
|
|
|
false
|
|
|
);
|
...
|
...
|
@@ -262,12 +267,22 @@ class Mail { |
|
|
}
|
|
|
|
|
|
// 更新数量
|
|
|
if(!isset($status['UNSEEN'])){
|
|
|
// 统计未读数量
|
|
|
$unseen = $db->count(listsSql::listCount(dbWhere([
|
|
|
'seen' => 0,
|
|
|
'deleted' => 0,
|
|
|
'email_id' => $email_id,
|
|
|
'folder_id' => $folder_id,
|
|
|
])));
|
|
|
$db->update(
|
|
|
folderSql::$table,
|
|
|
['last_sync_time' => time()],
|
|
|
['unseen' => $unseen],
|
|
|
dbWhere(['id'=>$folder_id]),
|
|
|
false
|
|
|
);
|
|
|
}
|
|
|
|
|
|
|
|
|
return $success_uid;
|
|
|
|
...
|
...
|
|