From 958b3688f51fcd23e4c4fb04d288879361bbdfaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E6=A5=BD=E5=9D=82=20=E7=99=BD?= Date: Mon, 30 Oct 2023 13:14:32 +0000 Subject: [PATCH] fixbug --- app/Http/Controllers/MailController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/MailController.php b/app/Http/Controllers/MailController.php index ca50af6..471ed9f 100644 --- a/app/Http/Controllers/MailController.php +++ b/app/Http/Controllers/MailController.php @@ -80,14 +80,14 @@ function ($attribute, $value, $fail) { $max_received_at = Mail::where([ ['to_hash', '=', $to_hash], - ['received_at', '>=', $key], + ['received_at', '>', $key], ]) ->orderBy('received_at', 'desc') - ->value("received_at"); + ->value("received_at") ?? $key; $new_email_list = Mail::where([ ['to_hash', '=', $to_hash], - ['received_at', '>=', $key], + ['received_at', '>', $key], ]) ->select([ 'id as key',