From 43f99495ed9960829334f845473f213feebd57ab Mon Sep 17 00:00:00 2001 From: ASUS <515617283@qq.com> Date: Wed, 3 Dec 2025 16:56:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E5=88=97=E8=A1=A8=20edit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chat/controller/MessageController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/chat/controller/MessageController.php b/app/chat/controller/MessageController.php index 226cabe..7f1d844 100644 --- a/app/chat/controller/MessageController.php +++ b/app/chat/controller/MessageController.php @@ -234,13 +234,13 @@ class MessageController extends ApiController $list_json = Redis::get('usermsg:list:' . $this->user_type . ':' . $this->uid); if($list_json) { $list_arr = json_decode($list_json, true); - foreach ($list_arr as $k => $list) { + foreach ($list_arr as $k => &$list) { if($list['session_id'] == $session_id) { - $list['id_del'] = 1; + $list['is_del'] = 1; } } if(count($list_arr) >= 1) { - Redis::setEx('usermsg:list:' . $this->user_type . ':' . $this->uid, 30 * 86400, json_encode($list_arr)); + Redis::set('usermsg:list:' . $this->user_type . ':' . $this->uid, json_encode($list_arr)); }else { Redis::del('usermsg:list:' . $this->user_type . ':' . $this->uid); }