正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
| @@ -365,7 +365,12 @@ class Body { | @@ -365,7 +365,12 @@ class Body { | ||
| 365 | } | 365 | } | 
| 366 | } | 366 | } | 
| 367 | 367 | ||
| 368 | - return $attachment; | 368 | + return array_filter($attachment,function (Attachment $atta){ | 
| 369 | + if($atta->getFilename()){ | ||
| 370 | + return true; | ||
| 371 | + } | ||
| 372 | + return false; | ||
| 373 | + }); | ||
| 369 | } | 374 | } | 
| 370 | 375 | ||
| 371 | 376 | 
- 
请 注册 或 登录 后发表评论