通知
This commit is contained in:
parent
c0a7b7d7e8
commit
8e581e07c1
|
|
@ -130,7 +130,7 @@ class Message extends Backend
|
|||
$count = 0;
|
||||
//超管不提醒新消息
|
||||
//if(!$this->auth->isSuperAdmin()){
|
||||
if(!$this->auth->id != 1){
|
||||
// if(!$this->auth->id != 1){
|
||||
$count = $this->model
|
||||
->where('type',1)
|
||||
->where('to_id',$this->auth->id)
|
||||
|
|
@ -139,7 +139,7 @@ class Message extends Backend
|
|||
->whereRaw("FIND_IN_SET({$this->auth->id}, read_uid) = 0 OR read_uid = '' or read_uid is null")
|
||||
->whereTime('create_time', '>=', '-3 days')
|
||||
->count();
|
||||
}
|
||||
// }
|
||||
return [
|
||||
'count' => $count
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user