shenzhipeng 3 лет назад
Родитель
Сommit
e39ce1a97f
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      application/module/ctrl/Sms_customer_list_adminAction.class.php

+ 3 - 1
application/module/ctrl/Sms_customer_list_adminAction.class.php

@@ -51,6 +51,7 @@ class Sms_customer_list_adminAction extends Action{
 			$pa .= "&group_name=$group_name";
 		}
 
+		$where.=" and is_block=0";
 		$customer_list = $admin->selesctSmsCustomer($where,$limit);
 		$all_total = $admin->selectSmsCustomerCount($where);
 
@@ -85,13 +86,14 @@ class Sms_customer_list_adminAction extends Action{
 		$pa       = "";//查询参数
 		$pa='&pagesize='.$pageSize;
 		$limit = " $n,$pageSize";
-		$where = " where uid='$uid' and is_block=1 ";
+		$where = " where uid='$uid' ";
 
 		$tel = trim($_REQUEST['tel']);
 		if(!empty($tel)) {
 			$where.=" and tel='$tel'";
 		}
 
+		$where.=" and is_block=1";
 		$customer_list = $admin->selesctSmsCustomer($where,$limit);
 		$all_total = $admin->selectSmsCustomerCount($where);