This commit is contained in:
xman 2025-06-05 09:27:42 +08:00
parent cb5f55039c
commit 5a0a2dc731

View File

@ -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 [