...
|
...
|
@@ -305,7 +305,7 @@ class Mail { |
|
|
* @author:dc
|
|
|
* @time 2023/2/9 10:29
|
|
|
*/
|
|
|
public function syncBody($folder_name, $uid ,$id,$db=null):bool {
|
|
|
public function syncBody($folder_name, $uid , $id, $db=null):bool {
|
|
|
|
|
|
$db = $db ? $db : db();
|
|
|
// 选择文件夹
|
...
|
...
|
@@ -321,6 +321,20 @@ class Mail { |
|
|
'lists_id' => $id,
|
|
|
'text_html' => $body
|
|
|
],false);
|
|
|
|
|
|
$description = '';
|
|
|
foreach ($body as $item){
|
|
|
if(in_array($item['type'],['text/html','text/plain'])){
|
|
|
$description = mb_substr(strip_tags($item['body']),0,190);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
// 更新描述
|
|
|
$db->update(listsSql::$table,[
|
|
|
'description' => $description
|
|
|
],dbWhere([
|
|
|
'id' => $id
|
|
|
]));
|
|
|
}
|
|
|
|
|
|
return true;
|
...
|
...
|
|