Przeglądaj źródła

短信黑名单共享

shenzhipeng 3 lat temu
rodzic
commit
3156956372

+ 2 - 2
application/lib/data/adminAction.php

@@ -167,8 +167,8 @@ class AdvertAdminAction extends BaseAction{
 			return $result;
 			return $result;
 		}
 		}
 
 
-		public function selectSmsBlackList($uid) {
-			$sql = "select tel from ly_sms_customer where is_block=1 and uid=$uid order by id desc ";
+		public function selectSmsBlackList() {
+			$sql = "select tel from ly_sms_customer where is_block=1 order by id desc ";
 			$result = $this->getDbEntity()->query($sql);
 			$result = $this->getDbEntity()->query($sql);
 			return $result;
 			return $result;
 		}
 		}

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

@@ -75,7 +75,6 @@ class Sms_customer_list_adminAction extends Action{
 		require_once (ONU_ROOT . "frame/Page.class.php");
 		require_once (ONU_ROOT . "frame/Page.class.php");
 
 
 		$admin = new AdvertAdminAction();
 		$admin = new AdvertAdminAction();
-		$uid   = $_SESSION['user_infos']['id'];
 
 
 		$info = $_REQUEST['info'];
 		$info = $_REQUEST['info'];
 
 
@@ -86,7 +85,7 @@ class Sms_customer_list_adminAction extends Action{
 		$pa       = "";//查询参数
 		$pa       = "";//查询参数
 		$pa='&pagesize='.$pageSize;
 		$pa='&pagesize='.$pageSize;
 		$limit = " $n,$pageSize";
 		$limit = " $n,$pageSize";
-		$where = " where uid='$uid' ";
+		$where = " where 1=1 ";
 
 
 		$tel = trim($_REQUEST['tel']);
 		$tel = trim($_REQUEST['tel']);
 		if(!empty($tel)) {
 		if(!empty($tel)) {
@@ -264,7 +263,7 @@ class Sms_customer_list_adminAction extends Action{
 
 
 				unset($excel_array[0]);//若第一排的数据是字段名的话,删除
 				unset($excel_array[0]);//若第一排的数据是字段名的话,删除
 				header("Content-type: text/html; charset=utf-8");
 				header("Content-type: text/html; charset=utf-8");
-				$blackList = $admin->selectSmsBlackList($uid);
+				$blackList = $admin->selectSmsBlackList();
 				$blackListArr = array_column($blackList, 'tel');
 				$blackListArr = array_column($blackList, 'tel');
 				$values = '';
 				$values = '';
 				foreach($excel_array as $array){
 				foreach($excel_array as $array){
@@ -299,7 +298,7 @@ class Sms_customer_list_adminAction extends Action{
 	public function importBlackList(){
 	public function importBlackList(){
 
 
 		$admin = new AdvertAdminAction();
 		$admin = new AdvertAdminAction();
-		$uid   = $_SESSION['user_infos']['id'];
+		$uid   = 99;
 
 
 		if($_POST['to_import_user']=='yes'){
 		if($_POST['to_import_user']=='yes'){
 			$filename = $_FILES['inputExcel']['name'];
 			$filename = $_FILES['inputExcel']['name'];