Parcourir la source

聊天室开发时间bug

wzq il y a 5 ans
Parent
commit
232d95e25a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/Repositories/BeanRepository.php

+ 1 - 1
app/Repositories/BeanRepository.php

@@ -234,7 +234,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;