...
|
...
|
@@ -298,25 +298,25 @@ class SyncMail { |
|
|
// 是否同步body内容
|
|
|
if($isBody){
|
|
|
|
|
|
$body = [
|
|
|
'lists_id' => $id,
|
|
|
'text_html' => []
|
|
|
];
|
|
|
|
|
|
foreach ($item->getBody()->getItems() as $item){
|
|
|
$body['text_html'] = [
|
|
|
'body' => $item->body,
|
|
|
'content-type' => $item->get('content-type'),
|
|
|
'content-id' => $item->get('content-id'),
|
|
|
'charset' => $item->get('charset')
|
|
|
];
|
|
|
}
|
|
|
|
|
|
if($this->db->count(bodySql::has($id))){
|
|
|
$this->db->update(bodySql::$table,$body,'`lists_id` = '.$id,false);
|
|
|
}else{
|
|
|
$this->db->insert(bodySql::$table,$body,false);
|
|
|
}
|
|
|
// $body = [
|
|
|
// 'lists_id' => $id,
|
|
|
// 'text_html' => []
|
|
|
// ];
|
|
|
//
|
|
|
// foreach ($item->getBody()->getItems() as $item){
|
|
|
// $body['text_html'][] = [
|
|
|
// 'body' => $item->body,
|
|
|
// 'content-type' => $item->get('content-type'),
|
|
|
// 'content-id' => $item->get('content-id'),
|
|
|
// 'charset' => $item->get('charset')
|
|
|
// ];
|
|
|
// }
|
|
|
//
|
|
|
// if($this->db->count(bodySql::has($id))){
|
|
|
// $this->db->update(bodySql::$table,$body,'`lists_id` = '.$id,false);
|
|
|
// }else{
|
|
|
// $this->db->insert(bodySql::$table,$body,false);
|
|
|
// }
|
|
|
|
|
|
}
|
|
|
|
...
|
...
|
|