...
|
...
|
@@ -233,28 +233,28 @@ class SyncMail { |
|
|
_echo($this->emailId().' ===> '.$folder->getName().' ===> '.$num);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$fid = $this->getFolderId($folder->getName());
|
|
|
// 更新数量
|
|
|
// $this->db->update(folderSql::$table,[
|
|
|
// 'exsts' => $this->db->count(listsSql::listCount(
|
|
|
// dbWhere(
|
|
|
// [
|
|
|
// 'folder_id'=>$this->getFolderId($folder->getName()),
|
|
|
// 'deleted' => 0,
|
|
|
// ]
|
|
|
// )
|
|
|
// )),
|
|
|
// 'unseen' => $this->db->count(listsSql::listCount(
|
|
|
// dbWhere(
|
|
|
// [
|
|
|
// 'folder_id'=>$this->getFolderId($folder->getName()),
|
|
|
// 'seen' => 0,
|
|
|
// 'deleted' => 0,
|
|
|
// ]
|
|
|
// )
|
|
|
// )),
|
|
|
// 'last_sync_time' => time()
|
|
|
// ],dbWhere(['email_id'=>$this->emailId(),'uuid'=>md5($this->emailId().$folder->getName())]),false);
|
|
|
$this->db->update(folderSql::$table,[
|
|
|
'exsts' => $this->db->count(listsSql::listCount(
|
|
|
dbWhere(
|
|
|
[
|
|
|
'folder_id'=>$fid,
|
|
|
'deleted' => 0,
|
|
|
]
|
|
|
)
|
|
|
)),
|
|
|
'unseen' => $this->db->count(listsSql::listCount(
|
|
|
dbWhere(
|
|
|
[
|
|
|
'folder_id'=>$fid,
|
|
|
'seen' => 0,
|
|
|
'deleted' => 0,
|
|
|
]
|
|
|
)
|
|
|
)),
|
|
|
'last_sync_time' => time()
|
|
|
],dbWhere(['email_id'=>$this->emailId(),'id'=>$fid]),false);
|
|
|
|
|
|
}
|
|
|
}
|
...
|
...
|
|