导入信息日期格式处理

master
zhaocheng 2 years ago
parent d983c1f0c7
commit 319e401e1e
  1. 1
      extend/service/CarInfoHandle.php

@ -49,6 +49,7 @@ class CarInfoHandle
$values[$keys_len - 1] = $id;
return array_combine($keys, $values);
});
$insert_data['register_date'] = date('Y-m-d', strtotime($insert_data['register_date']));
Db::name('car_info_t')->insertAll($insert_data);
cache('shell_process_' . $id, round(($i + 2000) / $lines * 100, 3), 300);
echo '当前进度:' . round(round(($i + 2000) / $lines * 100, 3)) . PHP_EOL;

Loading…
Cancel
Save