作者 邓超

info 不验证密码

... ... @@ -48,14 +48,14 @@ abstract class Base {
* @author:dc
* @time 2023/3/10 16:07
*/
protected final function getEmail($filed='*'){
protected final function getEmail($filed='*',$del=true){
static $data;
if(empty($data)){
$data = db()->cache(600)->first(emailSql::first(web_request_email()));
if(empty($data)){
app()->e('email_request_required');
}
if($data['pwd_error']){
if($del && $data['pwd_error']){
app()->e('imap_password_error',403);
}
}
... ...
... ... @@ -902,7 +902,7 @@ class Home extends Base {
}
}else{
// 没有,说明没有同步过来
$email = $this->getEmail();
$email = $this->getEmail('*',false);
$data = db()->first(listsSql::first(dbWhere(['id'=>$id,'email_id'=>$email['id']])));
}
... ...