From 40379bd4e205c2bc87e475be49e7c4418ab25a1c Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Thu, 12 Mar 2026 09:39:06 +0800 Subject: [PATCH] 1 --- app/common/service/UsedCarDetailService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/common/service/UsedCarDetailService.php b/app/common/service/UsedCarDetailService.php index 9558777..a22c2a3 100644 --- a/app/common/service/UsedCarDetailService.php +++ b/app/common/service/UsedCarDetailService.php @@ -182,7 +182,9 @@ class UsedCarDetailService if (!empty($data['crawl_car_id'])) { try { $params = $this->crawlParams($data['crawl_car_id']); - $params['official_guide_price'] = str_replace('万','',$params['official_guide_price'])*10000; + if(str_contains($params['official_guide_price'],'万')){ + $params['official_guide_price'] = str_replace('万','',$params['official_guide_price'])*10000; + } // 合并抓取的数据,手动提交的字段优先级更高 $data = array_merge($params, $data); } catch (\Throwable $e) {