作者 邓超

xxx

@@ -590,6 +590,7 @@ class Home extends Base { @@ -590,6 +590,7 @@ class Home extends Base {
590 public function expunge(){ 590 public function expunge(){
591 $email = $this->getEmail(); 591 $email = $this->getEmail();
592 $mailInstance = new Mail($email['email'],base64_decode($email['password']),$email['imap']); 592 $mailInstance = new Mail($email['email'],base64_decode($email['password']),$email['imap']);
  593 + $mailInstance->login();
593 if($mailInstance->expunge()){ 594 if($mailInstance->expunge()){
594 app()->_json([]); 595 app()->_json([]);
595 } 596 }