价格
This commit is contained in:
@@ -253,7 +253,7 @@ class UsedCarCrawlSingle
|
|||||||
}
|
}
|
||||||
// $cars['price'] = explode('万', $cars['price'])[0]??0;
|
// $cars['price'] = explode('万', $cars['price'])[0]??0;
|
||||||
$cars['price'] = str_replace(['¥', '¥', '万'], '', $cars['price']);
|
$cars['price'] = str_replace(['¥', '¥', '万'], '', $cars['price']);
|
||||||
$cars['price'] = $cars['price']*10000;
|
$cars['price'] = is_numeric($cars['price'])?$cars['price']*10000:$cars['price'];
|
||||||
//$cars['price'] = $ql->find('#overlayPrice')->text();
|
//$cars['price'] = $ql->find('#overlayPrice')->text();
|
||||||
$cars['title'] = $cars['product_name'];
|
$cars['title'] = $cars['product_name'];
|
||||||
$cars['condition_desc'] = $ql->find('div.leave-message-box #messageBox')->text();
|
$cars['condition_desc'] = $ql->find('div.leave-message-box #messageBox')->text();
|
||||||
|
|||||||
Reference in New Issue
Block a user