xielin %!s(int64=5) %!d(string=hai) anos
pai
achega
26ef0e5386
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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;