作者 邓超

x

@@ -62,6 +62,12 @@ function sync($email_id){ @@ -62,6 +62,12 @@ function sync($email_id){
62 62
63 $email = db()->first(\Model\emailSql::first($email_id)); 63 $email = db()->first(\Model\emailSql::first($email_id));
64 if(!$email || $email['pwd_error']){ 64 if(!$email || $email['pwd_error']){
  65 +
  66 + // 密码错误,或者超过一个月没有更新的邮箱 清空数据
  67 + if($email['pwd_error'] && $email['updated_at'] && strtotime($email['updated_at']) < (time()-86400*30) ){
  68 + db()->delete(\Model\listsSql::$table,['email_id'=>$email['id']]);
  69 + }
  70 +
65 return 0; 71 return 0;
66 } 72 }
67 73