| 
...
 | 
...
 | 
@@ -150,7 +150,7 @@ class Body { | 
| 
 | 
 | 
         $body = mb_substr($body,strpos($body,$tag),99999999999);
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         // 有附件的情况
 | 
| 
 | 
 | 
         preg_match('/boundary="([-_A-Za-z0-9=\.]{1,})"/i',$body,$boundary);
 | 
| 
 | 
 | 
         preg_match('/boundary="(.*)"/Ui',$body,$boundary);
 | 
| 
 | 
 | 
         if($boundary[0]??''){
 | 
| 
 | 
 | 
             $body = str_replace($boundary[0],'',$body);
 | 
| 
 | 
 | 
 //            $body = mb_substr($body,mb_strpos($body,$boundary[0])+strlen($boundary[0]),99999999999);
 | 
| 
...
 | 
...
 | 
@@ -186,7 +186,8 @@ class Body { | 
| 
 | 
 | 
             if(!$item) { continue; }
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
             // 邮件体包含邮件体
 | 
| 
 | 
 | 
             if(preg_match("/boundary=\"([-_a-z0-9]{5,})\"/Ui",$item,$bm)){
 | 
| 
 | 
 | 
             if(preg_match("/boundary=\"(.*)\"/Ui",$item,$bm)){
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
                 if (strpos($item,$bm[1].'--')!==false){
 | 
| 
 | 
 | 
                     $data = (new self('--'.$bm[1]."\r\n".$item,$this->fileSavePath))->getItem();
 | 
| 
 | 
 | 
 //                    $this->setItem($data);
 | 
...
 | 
...
 | 
 |