lvhao 1 dzień temu
rodzic
commit
cb07c72c83
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      core/CoreApp/models/Model_check.php

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

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