...
|
...
|
@@ -77,9 +77,9 @@ class SyncMailToEs { |
|
|
$this->es->create($this->getData($this->data),$id);
|
|
|
}
|
|
|
else if($this->table == 'lists_auto'){
|
|
|
$id = db()->first(listsSql::first($this->data['list_id'],'`email_id`,`folder_id`,`uid`'));
|
|
|
$id = $id['email_id'].'_'.$id['folder_id'].'_'.$id['uid'];
|
|
|
$this->es->update($id,['is_auto'=>1]);
|
|
|
$data = db()->first(listsSql::first('`id` = '.$this->data['list_id']));
|
|
|
$id = $data['email_id'].'_'.$data['folder_id'].'_'.$data['uid'];
|
|
|
$this->es->update($id,$this->getData($data));
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
@@ -106,6 +106,10 @@ class SyncMailToEs { |
|
|
|
|
|
|
|
|
public function getData($data){
|
|
|
if(!empty($data['id'])){
|
|
|
$data['uuid'] = $data['id'];
|
|
|
unset($data['id']);
|
|
|
}
|
|
|
if(!empty($data['from'])){
|
|
|
$data['from'] = [
|
|
|
'email' => $data['from'],
|
...
|
...
|
|