|
@@ -142,6 +142,7 @@ class Import
|
|
|
$table_status['body'][0][1] = 0;
|
|
|
|
|
|
$check = array();
|
|
|
+ $check_mobile = array();
|
|
|
|
|
|
if ($data) {
|
|
|
$member = array();
|
|
@@ -149,6 +150,7 @@ class Import
|
|
|
$state = preg_match(Dever::rule('mobile'), $v['C']);
|
|
|
if ($state) {
|
|
|
$key = $v['A'];
|
|
|
+ $mobile = $v['C'];
|
|
|
$update = array();
|
|
|
$update['main'] = $v['E'] == 1 ? 1 : 2;
|
|
|
if (!isset($check[$key])) {
|
|
@@ -168,6 +170,12 @@ class Import
|
|
|
} else {
|
|
|
$table_status['body'][0][1] += 1;
|
|
|
}
|
|
|
+
|
|
|
+ if (!isset($check_mobile[$mobile])) {
|
|
|
+ $check_mobile[$mobile] = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ $check_mobile[$mobile]++;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -196,6 +204,13 @@ class Import
|
|
|
$table['body'][$k] = array($k, '主账户数量等于' . $v['num']);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ foreach ($check_mobile as $k => $v) {
|
|
|
+ if ($v > 1) {
|
|
|
+ $table['body'][$k] = array($k, '手机号数量为' . $v);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$result['数据异常'] = array
|
|
|
(
|
|
|
'type' => 'table',
|