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