抓取车辆

This commit is contained in:
2026-03-11 15:01:54 +08:00
parent bfbed7fd2d
commit 260e76449b
5 changed files with 249 additions and 12 deletions
@@ -1265,6 +1265,7 @@ class WordpressSiteService
if (str_contains($car->mileage, '万') || str_contains($car->mileage, '万公里')) {
$car->mileage = str_replace(['万', '公里', '万公里'],'',$car->mileage)*10000;
}
$car->power = str_replace('马力','',$car->power);
foreach ($fieldMap as $acfKey => $label) {
if (!empty($car->$acfKey)) {
$value = $car->$acfKey;