作者 邓超

x

... ... @@ -64,7 +64,7 @@ function sync($email_id){
if(!$email || $email['pwd_error']){
// 密码错误,或者超过一个月没有更新的邮箱 清空数据
if($email['pwd_error'] && $email['updated_at'] && strtotime($email['updated_at']) < (time()-86400*30) ){
if($email['pwd_error'] && $email['updated_at'] && strtotime($email['updated_at']) < (time()-86400*7) ){
db()->delete(\Model\listsSql::$table,['email_id'=>$email['id']]);
}
... ...
... ... @@ -442,9 +442,14 @@ class Mail {
try {
$id = $db->throw()->insert(listsSql::$table,$data);
if($id){
try {
go(function ($id,$header,$data){
new syncMail($id,$header,$data);
},...[$id,$header,$data]);
}catch (\Throwable $e){
logs($e->getMessage());
}
}
}catch (\Throwable $e){
... ...