...
|
...
|
@@ -38,6 +38,7 @@ class Message extends Api |
|
|
'num'://未读消息数量
|
|
|
'total'://通知数量
|
|
|
'createtime'://创建时间
|
|
|
'already'://已读
|
|
|
}
|
|
|
})
|
|
|
*/
|
...
|
...
|
@@ -73,8 +74,8 @@ class Message extends Api |
|
|
$data['total'] = Db::name('message')
|
|
|
->where('user_id',$user_id)
|
|
|
->whereOr('user_id','null')
|
|
|
->order('is_read desc,createtime desc')
|
|
|
->count();
|
|
|
$data['already'] = $data['total'] - $data['num'];
|
|
|
$this->success('success',$data);
|
|
|
}
|
|
|
|
...
|
...
|
|