车架重复处理调试

master
zcstatham 2 years ago
parent df0f06fdd4
commit f16b690e22
  1. 3
      extend/service/CarInfoHandle.php

@ -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++;
} }

Loading…
Cancel
Save