作者 邓超

x

@@ -442,14 +442,13 @@ class Mail { @@ -442,14 +442,13 @@ class Mail {
442 try { 442 try {
443 $id = $db->throw()->insert(listsSql::$table,$data); 443 $id = $db->throw()->insert(listsSql::$table,$data);
444 if($id){ 444 if($id){
445 - try { 445 + if(php_sapi_name()=='cli'){
446 go(function ($id,$header,$data){ 446 go(function ($id,$header,$data){
447 new syncMail($id,$header,$data); 447 new syncMail($id,$header,$data);
448 - },...[$id,$header,$data]);  
449 - }catch (\Throwable $e){  
450 - logs($e->getMessage()); 448 + },
  449 + ...[$id,$header,$data]
  450 + );
451 } 451 }
452 -  
453 } 452 }
454 453
455 }catch (\Throwable $e){ 454 }catch (\Throwable $e){