作者 邓超

es

@@ -964,6 +964,9 @@ class Home extends Base { @@ -964,6 +964,9 @@ class Home extends Base {
964 $data['description'] = @html_entity_decode($data['description']??'', ENT_COMPAT, 'UTF-8'); 964 $data['description'] = @html_entity_decode($data['description']??'', ENT_COMPAT, 'UTF-8');
965 965
966 $data['to_name'] = $data['to_name'] ? json_decode($data['to_name'],true) : []; 966 $data['to_name'] = $data['to_name'] ? json_decode($data['to_name'],true) : [];
  967 + if(!$data['to_name']){
  968 + $data['to_name'] = ["email"=>$email['email'],'name'=>''];
  969 + }
967 $data['cc'] = $data['cc'] ? json_decode($data['cc'],true) : []; 970 $data['cc'] = $data['cc'] ? json_decode($data['cc'],true) : [];
968 $data['bcc'] = $data['bcc'] ? json_decode($data['bcc'],true) : []; 971 $data['bcc'] = $data['bcc'] ? json_decode($data['bcc'],true) : [];
969 972