xielin 5 年之前
父節點
當前提交
26ef0e5386
共有 1 個文件被更改,包括 4 次插入1 次删除
  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;