作者 邓超

x

... ... @@ -2,7 +2,6 @@
namespace Lib\Mail;
use Lib\Mail\MailFun;
/**
* 解析邮件body内容
... ...
... ... @@ -234,8 +234,8 @@ class MailFun {
* @time 2023/4/3 10:24
*/
public static function isBase64($str){
$oldStr = str_replace([' ',"\n","\r"],'',rtrim($str,'='));
return $oldStr == base64_encode(base64_decode($str));
$oldStr = str_replace(["\n","\r"],'',rtrim($str,'='));
return $oldStr == rtrim(base64_encode(base64_decode($str)),'=');
}
... ...