Merge branch 'hotfix/email'
This commit is contained in:
@@ -119,7 +119,10 @@ class Mailbox
|
|||||||
imap_close($inbox);
|
imap_close($inbox);
|
||||||
flg("✔ {$username}获取到新询盘邮件 {$count} 条 ...", false,'mailbox');
|
flg("✔ {$username}获取到新询盘邮件 {$count} 条 ...", false,'mailbox');
|
||||||
|
|
||||||
$mailboxModel->last_uid = max($uids);
|
|
||||||
|
if(empty($uids)){
|
||||||
|
$mailboxModel->last_uid = max($uids);
|
||||||
|
}
|
||||||
$mailboxModel->last_fetch_at = time();
|
$mailboxModel->last_fetch_at = time();
|
||||||
$mailboxModel->save();
|
$mailboxModel->save();
|
||||||
|
|
||||||
@@ -769,7 +772,7 @@ class Mailbox
|
|||||||
->distinct()
|
->distinct()
|
||||||
->get();
|
->get();
|
||||||
foreach ($emails as $email) {
|
foreach ($emails as $email) {
|
||||||
$mailboxModel = EmailMailbox::where('username', $email->email)->first();
|
$mailboxModel = EmailMailbox::where('username', $email->mailto)->first();
|
||||||
$this->fenpai($mailboxModel);
|
$this->fenpai($mailboxModel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user