xielin 5 vuotta sitten
vanhempi
commit
26ef0e5386
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      app/Repositories/BeanRepository.php

+ 4 - 1
app/Repositories/BeanRepository.php

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