zhangchangchun 5 년 전
부모
커밋
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();
     }
 }