作者 邓超

x

@@ -855,6 +855,9 @@ class Home extends Base { @@ -855,6 +855,9 @@ class Home extends Base {
855 * @time 2023/4/1 9:24 855 * @time 2023/4/1 9:24
856 */ 856 */
857 public function info(){ 857 public function info(){
  858 + $reload = app()->request('reload',0,'intval');
  859 + $sync_num = 0;
  860 + HOME_INFO_BODY:
858 $id = app()->request('id',0,'intval'); 861 $id = app()->request('id',0,'intval');
859 862
860 $udate = app()->request('udate',0,'intval'); 863 $udate = app()->request('udate',0,'intval');
@@ -874,8 +877,6 @@ class Home extends Base { @@ -874,8 +877,6 @@ class Home extends Base {
874 } 877 }
875 878
876 if($data){ 879 if($data){
877 - $sync_num = 0;  
878 -  
879 $data['uuid'] = get_email_uuid($data['subject'],$data['udate'],$data['from'],$data['to'],$data['size']); 880 $data['uuid'] = get_email_uuid($data['subject'],$data['udate'],$data['from'],$data['to'],$data['size']);
880 881
881 $data['description'] = @html_entity_decode($data['description']??'', ENT_COMPAT, 'UTF-8'); 882 $data['description'] = @html_entity_decode($data['description']??'', ENT_COMPAT, 'UTF-8');
@@ -892,14 +893,11 @@ class Home extends Base { @@ -892,14 +893,11 @@ class Home extends Base {
892 },$data['to_name']); 893 },$data['to_name']);
893 894
894 // 是否再次 重新获取 895 // 是否再次 重新获取
895 - $reload = app()->request('reload',0,'intval');  
896 $data['allowreply'] = db()->value(folderSql::first(['id'=>$data['folder_id']],'folder'))!='发件箱'?1:0; 896 $data['allowreply'] = db()->value(folderSql::first(['id'=>$data['folder_id']],'folder'))!='发件箱'?1:0;
897 - HOME_INFO_BODY: 897 +
898 $body = db()->first(bodySql::first($id)); 898 $body = db()->first(bodySql::first($id));
899 if($body && !$reload){ 899 if($body && !$reload){
900 $data['body'] = json_decode($body['text_html'],true); 900 $data['body'] = json_decode($body['text_html'],true);
901 -  
902 - $charset = 'utf-8';  
903 $htmlbody = ''; 901 $htmlbody = '';
904 foreach ($data['body'] as $bd){ 902 foreach ($data['body'] as $bd){
905 // if(!empty($bd['charset'])){ 903 // if(!empty($bd['charset'])){