lvhao před 1 dnem
rodič
revize
725de78a64
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      core/CoreApp/models/Model_check.php

+ 2 - 2
core/CoreApp/models/Model_check.php

@@ -15,7 +15,7 @@ class Model_check extends Lin_Model
 			return false;
 			return false;
 		}
 		}
 		$limit_time = time() - 72*60*60;
 		$limit_time = time() - 72*60*60;
-		$info =  $this->find("(status = 1)   and  (addtime >=  ".$limit_time.") and ((check_name = '".$check_name."') or (check_address like '%".$check_address."%'))","*",'addtime DESC');	
+		$info =  $this->find("(status = 1)   and  (addtime >=  ".$limit_time.") and ((check_name = '".$check_name."') or (check_address like BINARY  '%".$check_address."%'))","*",'addtime DESC');	
 
 
 		if(empty($info)){
 		if(empty($info)){
 
 
@@ -43,7 +43,7 @@ class Model_check extends Lin_Model
 			return false;
 			return false;
 		}
 		}
 		$limit_time = time() - 72*60*60;
 		$limit_time = time() - 72*60*60;
-		$info =  $this->find("(status = 1)   and  (addtime >=  ".$limit_time.") and ((check_name = '".$check_name."') or (check_address like '%".$check_address."%'))","*",'addtime DESC');	
+		$info =  $this->find("(status = 1)   and  (addtime >=  ".$limit_time.") and ((check_name = '".$check_name."') or (check_address like BINARY  '%".$check_address."%'))","*",'addtime DESC');	
 		if(empty($info)){
 		if(empty($info)){
 			return true;
 			return true;
 		}
 		}