|
|
@ -389,7 +389,6 @@ class CarInfoHandle |
|
|
|
CarInfoT::where('id', $source_a['id'])->update($source_a); |
|
|
|
CarInfoT::where('id', $source_a['id'])->update($source_a); |
|
|
|
$this->repeatDataHandle($source, $id, 'frame'); |
|
|
|
$this->repeatDataHandle($source, $id, 'frame'); |
|
|
|
$delete_num ++; |
|
|
|
$delete_num ++; |
|
|
|
CarInfoT::destroy($source['id']); |
|
|
|
|
|
|
|
unset($sources[$index]); |
|
|
|
unset($sources[$index]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -400,7 +399,7 @@ class CarInfoHandle |
|
|
|
} catch (\Exception $e) { |
|
|
|
} catch (\Exception $e) { |
|
|
|
$faild_num++; |
|
|
|
$faild_num++; |
|
|
|
Db::rollback(); |
|
|
|
Db::rollback(); |
|
|
|
Log::record($e->getTraceAsString(), 'error'); |
|
|
|
Log::record($e->getMessage(), 'error'); |
|
|
|
} |
|
|
|
} |
|
|
|
$current++; |
|
|
|
$current++; |
|
|
|
} |
|
|
|
} |
|
|
|