xielin 5 years ago
parent
commit
5aaf41cee2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/Repositories/BeanRepository.php

+ 4 - 0
app/Repositories/BeanRepository.php

@@ -457,6 +457,10 @@ class BeanRepository
         $chatRoomsData1 = [];
         $chatRoomsData0 = [];
         foreach ($chatrooms as &$chatroom) {
+            //没有推荐的则不显示
+            if ($chatroom['is_recommend'] == 0) {
+                continue;
+            }
             if ($chatroom['start'] < $chatroom['end']) {
                 if ($current < $chatroom['start'] || $current > $chatroom['end']) {
                     $chatroom['is_open'] = 0;