caihongxingqiu лет назад: 5
Родитель
Сommit
9e536c4a8a
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      app/Repositories/BeanRepository.php

+ 5 - 5
app/Repositories/BeanRepository.php

@@ -226,18 +226,18 @@ class BeanRepository
         foreach ($chatrooms as &$chatroom) {
             if ($chatroom['start']<$chatroom['end']) {
                 if ($current<$chatroom['start'] || $current>$chatroom['end']) {
-                    $chatroom['id_open'] = 0;
+                    $chatroom['is_open'] = 0;
                 } else {
-                    $chatroom['id_open'] = 1;
+                    $chatroom['is_open'] = 1;
                 }
             } elseif ($chatroom['start']>$chatroom['end']) {
                 if ($current<$chatroom['end']) {
-                    $chatroom['id_open'] = 0;
+                    $chatroom['is_open'] = 0;
                 } else {
-                    $chatroom['id_open'] = 1;
+                    $chatroom['is_open'] = 1;
                 }
             } else {
-                $chatroom['id_open'] = 1;
+                $chatroom['is_open'] = 1;
             }
         }
         $star_home['chatroom'] = $chatrooms;