From 512185fc1065a53e8d8f9a66d01c459b75453851 Mon Sep 17 00:00:00 2001 From: Baoshuo Ren Date: Thu, 27 Oct 2022 18:34:41 +0800 Subject: [PATCH] feat(web/user/system_msg): unread msgs bg-warning --- web/app/controllers/user_system_msg.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/web/app/controllers/user_system_msg.php b/web/app/controllers/user_system_msg.php index 88c8d9a..066b676 100644 --- a/web/app/controllers/user_system_msg.php +++ b/web/app/controllers/user_system_msg.php @@ -64,10 +64,6 @@ $system_msgs[$idx]['delete_form'] = $delete_form; } } - - if (Auth::id() == $user['username']) { - DB::update("update user_system_msg set read_time = now() where receiver = '" . $user['username'] . "'"); - } ?> @@ -83,7 +79,9 @@