This commit is contained in:
xman 2025-06-05 21:35:34 +08:00
parent c0a7b7d7e8
commit 8e581e07c1

View File

@ -130,7 +130,7 @@ class Message extends Backend
$count = 0; $count = 0;
//超管不提醒新消息 //超管不提醒新消息
//if(!$this->auth->isSuperAdmin()){ //if(!$this->auth->isSuperAdmin()){
if(!$this->auth->id != 1){ // if(!$this->auth->id != 1){
$count = $this->model $count = $this->model
->where('type',1) ->where('type',1)
->where('to_id',$this->auth->id) ->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") ->whereRaw("FIND_IN_SET({$this->auth->id}, read_uid) = 0 OR read_uid = '' or read_uid is null")
->whereTime('create_time', '>=', '-3 days') ->whereTime('create_time', '>=', '-3 days')
->count(); ->count();
} // }
return [ return [
'count' => $count 'count' => $count
]; ];