From 5a0a2dc731f356e84e29a7a3e34a2288b7e6c052 Mon Sep 17 00:00:00 2001 From: xman <1946321327@qq.com> Date: Thu, 5 Jun 2025 09:27:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Message.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/admin/controller/Message.php b/application/admin/controller/Message.php index a91bd66..8e49f65 100644 --- a/application/admin/controller/Message.php +++ b/application/admin/controller/Message.php @@ -132,10 +132,11 @@ class Message extends Backend // if(!$this->auth->isSuperAdmin()){ $count = $this->model ->where('type',1) - ->auth($this->auth) + ->where('to_id',$this->auth->id) + //->auth($this->auth) //->whereRaw("FIND_IN_SET(?, read_uid) = 0 OR read_uid IS NULL OR read_uid = ''", [$this->auth->id]) ->whereRaw("FIND_IN_SET({$this->auth->id}, read_uid) = 0 OR read_uid = '' or read_uid is null") - ->whereTime('create_time', '>=', '-30 days') + ->whereTime('create_time', '>=', '-3 days') ->count(); // } return [