wzq преди 5 години
родител
ревизия
d556ed73e0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Repositories/BeanRepository.php

+ 1 - 1
app/Repositories/BeanRepository.php

@@ -432,7 +432,7 @@ class BeanRepository
                     $chatroom['is_open'] = 1;
                 }
             } elseif ($chatroom['start']>$chatroom['end']) {
-                if ($current<$chatroom['end']) {
+                if ($current>$chatroom['end'] && $current<$chatroom['start']) {
                     $chatroom['is_open'] = 0;
                 } else {
                     $chatroom['is_open'] = 1;