|
@@ -122,6 +122,7 @@ class Crontab extends Controller
|
|
|
$success = [];
|
|
|
$error = [];
|
|
|
// var_dump($excel_array);die;
|
|
|
+ $emailStr = '';
|
|
|
if (!empty($excel_array)) {
|
|
|
foreach ($excel_array as $k => $v) {
|
|
|
$status = 1; // 为1标识此行正常
|
|
@@ -129,6 +130,17 @@ class Crontab extends Controller
|
|
|
$v[3] = trim($v[3]);
|
|
|
// 判断邮件
|
|
|
if (!empty($v[2])) {
|
|
|
+ $domain = strstr($emailStr, $v[2]);
|
|
|
+ if ($domain) {
|
|
|
+ $error[] = [
|
|
|
+ 'rows' => $k,
|
|
|
+ 'msg' => '邮箱在文档中重复,自动忽略',
|
|
|
+ 'content' => $v[2],
|
|
|
+ 'uni' => $uni,
|
|
|
+ ];
|
|
|
+ $status = 0; // 设置为0标识此行有错误
|
|
|
+ }
|
|
|
+ $emailStr = $emailStr.$v[2];
|
|
|
$checkEmail = Db::name('customer')->where('email',$v[2])->where('spread_id',$uid)->find();
|
|
|
if ($checkEmail) {
|
|
|
$error[] = [
|