通知
This commit is contained in:
parent
cb5f55039c
commit
5a0a2dc731
|
|
@ -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 [
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user