@@ -178,7 +178,7 @@ class MessageService extends BaseService
$counts = $this->model->where(['to_uid'=>$userId,'status'=>1,'mark'=>1])
->selectRaw('count(id) as count,type')
->groupBy('type')
- ->first();
+ ->get();
$counts = $counts?$counts->toArray() :[];
var_dump($counts);
if($counts){