车架重复处理调试9

master
zcstatham 2 years ago
parent e0c463b2e0
commit d60ec3182c
  1. 6
      extend/service/CarInfoHandle.php

@ -320,18 +320,12 @@ class CarInfoHandle
Db::startTrans();
try {
foreach ($sources as $index => $source) {
echo $index.PHP_EOL;
var_dump($sources);
if (empty(trim($source['car_phone']))) {
echo '开始循环'.PHP_EOL;
foreach ($sources as $source_data) {
echo '循环:'.$source_data['id'].PHP_EOL;
$this->repeatDataHandle($source_data, $id, 'frame');
$delete_num ++;
}
echo '循环over'.PHP_EOL;
RepeatFrameT::where('car_frame_no', $item->car_frame_no)->delete();
echo '循环over'.PHP_EOL;
$sources = [];
Log::record($source_data['id']);
break;

Loading…
Cancel
Save