推送价格与来源编码
This commit is contained in:
@@ -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 ?? '';
|
||||
|
||||
Reference in New Issue
Block a user