|
|
@@ -91,7 +91,7 @@ class LowPriceGoodsDataJobs implements ShouldQueue
|
|
|
$product_data = $message_data['product_data'];
|
|
|
$index_number = $message_data['index_number'];
|
|
|
$data_totle = $message_data['data_totle'];
|
|
|
-
|
|
|
+
|
|
|
//-------------------------------------- 清洗规则(开始) --------------------------------------
|
|
|
//过滤没有链接数据
|
|
|
if (trim($product_data['link_url']) == '') return true;
|
|
|
@@ -100,6 +100,7 @@ class LowPriceGoodsDataJobs implements ShouldQueue
|
|
|
//计算单盒价格
|
|
|
$unit_price = round($product_data['min_price'] / $product_data['number'], 2);
|
|
|
if ($unit_price > $suggested_price) return true;
|
|
|
+ $product_data['unit_price'] = $unit_price;
|
|
|
//数据是否命中商品名称
|
|
|
if ($product_name != '') {
|
|
|
$hit_product_name = false;
|