...
|
...
|
@@ -420,6 +420,13 @@ class SyncMail { |
|
|
'folder_id' => $data['folder_id'],
|
|
|
'uid' => $data['uid']
|
|
|
]),'`id`'));
|
|
|
if(!$id){
|
|
|
$id = $this->db->value(listsSql::firstHot(dbWhere([
|
|
|
'email_id'=> $data['email_id'],
|
|
|
'folder_id' => $data['folder_id'],
|
|
|
'uid' => $data['uid']
|
|
|
]),'`id`'));
|
|
|
}
|
|
|
|
|
|
|
|
|
if(!$id){
|
...
|
...
|
@@ -437,7 +444,9 @@ class SyncMail { |
|
|
Event::call('mail_sync_list',$id, $data);
|
|
|
|
|
|
}else{
|
|
|
$this->db->update(listsSql::$table,$data,dbWhere(['id'=> $id]));
|
|
|
if(!$this->db->update(listsSql::$table,$data,dbWhere(['id'=> $id]))){
|
|
|
$this->db->update('lists_hot',$data,dbWhere(['id'=> $id]));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//TODO 如果header 头信息里面有2段数据 第二段就作为内容解析
|
...
|
...
|
|