zhangchangchun лет назад: 5
Родитель
Сommit
1151e3bee4
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/Repositories/CategoryRepository.php

+ 1 - 0
app/Repositories/CategoryRepository.php

@@ -35,6 +35,7 @@ class CategoryRepository {
             ->where('topic.is_suggest',1)
             ->whereIn('category_topic.category_id',$ids)
             ->select('topic.id','topic.name','topic.is_suggest')
+            ->groupBy('topic.id')
             ->get();
     }
 }