|
|
@ -360,6 +360,12 @@ class CarInfoHandle |
|
|
|
$delete_num ++; |
|
|
|
$delete_num ++; |
|
|
|
unset($sources[$index]); |
|
|
|
unset($sources[$index]); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
if ($source_a['car_no'] != $source['car_no'] && (trim($source_a['car_no']) == '' || !in_array(strlen($source_a['car_no']), [7,8]))) { |
|
|
|
|
|
|
|
list($source_a, $source) = [$source, $source_a]; |
|
|
|
|
|
|
|
} else if ($source_a['register_date'] != $source['register_date'] && (trim($source_a['register_date']) == '' || $source_a['register_date'] < $source['register_date'])) { |
|
|
|
|
|
|
|
list($source_a, $source) = [$source, $source_a]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$phones = [$source['car_phone']]; |
|
|
|
$phones = [$source['car_phone']]; |
|
|
|
$phones_a = [$source_a['car_phone']]; |
|
|
|
$phones_a = [$source_a['car_phone']]; |
|
|
|
foreach (['id_phone', 'insured_phone', 'link_phone_1', 'link_phone_2', 'link_phone_3'] as $key) { |
|
|
|
foreach (['id_phone', 'insured_phone', 'link_phone_1', 'link_phone_2', 'link_phone_3'] as $key) { |
|
|
@ -394,6 +400,7 @@ class CarInfoHandle |
|
|
|
} catch (\Exception $e) { |
|
|
|
} catch (\Exception $e) { |
|
|
|
$faild_num++; |
|
|
|
$faild_num++; |
|
|
|
Db::rollback(); |
|
|
|
Db::rollback(); |
|
|
|
|
|
|
|
Log::record($e->getTraceAsString(), 'error'); |
|
|
|
} |
|
|
|
} |
|
|
|
$current++; |
|
|
|
$current++; |
|
|
|
} |
|
|
|
} |
|
|
|