ShuanghongS 7 달 전
부모
커밋
6c0c7bf6b9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      service/tools.class.php

+ 1 - 1
service/tools.class.php

@@ -1328,7 +1328,7 @@ class tools {
             // $sql_where .= " and ni.insert_date >= TO_TIMESTAMP('".$_REQUEST['current_time']."', 'MM/DD/YYYY HH24:MI:SS') - interval '5 minutes'
             //     and ni.is_send_message is null";
             //这里都以服务器时间,检查标准
-            $sql_where .= " and ni.is_send_message is null";
+            $sql_where .= " and ni.insert_date >= now() - interval '5 minutes' and ni.is_send_message is null";
         }
         if (!empty($_REQUEST['info_type']) && $_REQUEST['info_type'] == 'true'){
             $sql_where .= " and ni.is_send_message is null";