ShuanghongS 1 рік тому
батько
коміт
4c53f252a4
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      utils/common.class.php

+ 4 - 0
utils/common.class.php

@@ -121,6 +121,10 @@ class common {
             $httpAccept = $_SERVER['HTTP_ACCEPT']; // ajax request,is json or html
             $ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER
                             ['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'; // is ajax request?
+            //暂时这么写,放开action = main的查询               
+            if((stripos($action, "main") === 0)){
+                return;
+            }
             if (!isset($_SESSION['ONLINE_USER'])) {
                 self::timeoutPrintInfor($httpAccept, $ajax, 'no');
             } else {