数据导入电话处理调试

master
zcstatham 2 years ago
parent 61f96217ae
commit a163a7d39d
  1. 1
      extend/service/CarInfoHandle.php

@ -601,6 +601,7 @@ class CarInfoHandle
$phones_empty_keys = []; $phones_empty_keys = [];
// 新数据去重,并获得空电话位 // 新数据去重,并获得空电话位
foreach ($link_phone_keys as $phone_key => $man_key) { foreach ($link_phone_keys as $phone_key => $man_key) {
$row_array[$phone_key] = $row_array[$phone_key] ?? '';
if (in_array($row_array[$phone_key], $phones)) if (in_array($row_array[$phone_key], $phones))
$row_array[$phone_key] = ''; $row_array[$phone_key] = '';
if (!empty($row_array[$phone_key])) if (!empty($row_array[$phone_key]))

Loading…
Cancel
Save