wesmiler 6 дней назад
Родитель
Сommit
e2d0865c6f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/Api/MessageService.php

+ 1 - 1
app/Services/Api/MessageService.php

@@ -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){