|
@@ -251,6 +251,8 @@ class Sms_customer_list_adminAction extends Action{
|
|
|
|
|
|
unset($excel_array[0]);//若第一排的数据是字段名的话,删除
|
|
|
header("Content-type: text/html; charset=utf-8");
|
|
|
+ $blackList = $admin->selectSmsBlackList($uid);
|
|
|
+ $blackListArr = array_column($blackList, 'tel');
|
|
|
$values = '';
|
|
|
foreach($excel_array as $array){
|
|
|
if(!empty($array[2])){
|
|
@@ -259,6 +261,10 @@ class Sms_customer_list_adminAction extends Action{
|
|
|
$tel = trim($array[2]);
|
|
|
$groupName = trim($array[3]);
|
|
|
|
|
|
+ if(in_array($tel, $blackList)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
$values .= "('{$uname}', '{$country}', '{$tel}', {$uid}, '{$groupName}', 0),";
|
|
|
}
|
|
|
|