作者 邓超

info 不验证密码

@@ -48,14 +48,14 @@ abstract class Base { @@ -48,14 +48,14 @@ abstract class Base {
48 * @author:dc 48 * @author:dc
49 * @time 2023/3/10 16:07 49 * @time 2023/3/10 16:07
50 */ 50 */
51 - protected final function getEmail($filed='*'){ 51 + protected final function getEmail($filed='*',$del=true){
52 static $data; 52 static $data;
53 if(empty($data)){ 53 if(empty($data)){
54 $data = db()->cache(600)->first(emailSql::first(web_request_email())); 54 $data = db()->cache(600)->first(emailSql::first(web_request_email()));
55 if(empty($data)){ 55 if(empty($data)){
56 app()->e('email_request_required'); 56 app()->e('email_request_required');
57 } 57 }
58 - if($data['pwd_error']){ 58 + if($del && $data['pwd_error']){
59 app()->e('imap_password_error',403); 59 app()->e('imap_password_error',403);
60 } 60 }
61 } 61 }
@@ -902,7 +902,7 @@ class Home extends Base { @@ -902,7 +902,7 @@ class Home extends Base {
902 } 902 }
903 }else{ 903 }else{
904 // 没有,说明没有同步过来 904 // 没有,说明没有同步过来
905 - $email = $this->getEmail(); 905 + $email = $this->getEmail('*',false);
906 $data = db()->first(listsSql::first(dbWhere(['id'=>$id,'email_id'=>$email['id']]))); 906 $data = db()->first(listsSql::first(dbWhere(['id'=>$id,'email_id'=>$email['id']])));
907 } 907 }
908 908