推送价格与来源编码

This commit is contained in:
2026-03-12 15:01:15 +08:00
parent 7c7e66ae9a
commit 037137b188
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1002,7 +1002,7 @@ class UsedCarDetailService
*/
private function generateCode(): string
{
return 'UC' . date('YmdHis') . rand(1000, 9999);
return 'ST' . date('YmdHis') . rand(1000, 9999);
}
/**
@@ -1376,6 +1376,8 @@ class WordpressSiteService
$data['acf'][$acfKey] = $value;
}
}
$data['acf']['price'] = number_format($car->price * $site->exchange_rate, 2);
$data['acf']['source_num'] = $car->code;
// 翻译并设置车况介绍和产品简介(ACF字段)
// $conditionDesc = $car->condition_desc ?? '';