浏览代码

聊天室开发时间bug

wzq 5 年之前
父节点
当前提交
232d95e25a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;