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 [