diff --git a/application/admin/controller/Message.php b/application/admin/controller/Message.php index e905565..868e8f2 100644 --- a/application/admin/controller/Message.php +++ b/application/admin/controller/Message.php @@ -135,6 +135,7 @@ class Message extends Backend ->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') ->count(); } return [