作者 邓超

优化

@@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
2 2
3 namespace Controller; 3 namespace Controller;
4 4
  5 +use Lib\Imap\Fun;
5 use Lib\Mail\Mail; 6 use Lib\Mail\Mail;
6 use Lib\Mail\MailFun; 7 use Lib\Mail\MailFun;
7 use Lib\UploadFile; 8 use Lib\UploadFile;
@@ -910,6 +911,7 @@ class Home extends Base { @@ -910,6 +911,7 @@ class Home extends Base {
910 $data['uuid'] = get_email_uuid($data['subject'],$data['udate'],$data['from'],$data['to'],$data['size']); 911 $data['uuid'] = get_email_uuid($data['subject'],$data['udate'],$data['from'],$data['to'],$data['size']);
911 912
912 $data['description'] = @html_entity_decode($data['description']??'', ENT_COMPAT, 'UTF-8'); 913 $data['description'] = @html_entity_decode($data['description']??'', ENT_COMPAT, 'UTF-8');
  914 + $data['description'] = Fun::mb_convert_encoding($data['description'],'utf-8');
913 915
914 $data['to_name'] = $data['to_name'] ? json_decode($data['to_name'],true) : []; 916 $data['to_name'] = $data['to_name'] ? json_decode($data['to_name'],true) : [];
915 $data['cc'] = $data['cc'] ? json_decode($data['cc'],true) : []; 917 $data['cc'] = $data['cc'] ? json_decode($data['cc'],true) : [];