Browse Source

[智价云] 清洗修复

tangyuanwang 2 days ago
parent
commit
bc16f1f927

+ 1 - 0
app/Models/Manager/Process/LowPriceGoods.php

@@ -138,6 +138,7 @@ class LowPriceGoods extends Model
                 $source_where[] = ['scrape_date', '=', $data['scrape_date']]; //采集日期
             } else {
                 $source_where[] = ['link_url', '=', $data['link_url']]; //链接地址
+                $source_where[] = ['scrape_date', '=', $data['scrape_date']]; //链接地址
             }
             $source_id_log = $this->where($source_where)->select(['id', 'online_posting_price'])->first();
             if (!empty($source_id_log)) {

+ 1 - 0
app/Models/Manager/Process/ViolationProduct.php

@@ -132,6 +132,7 @@ class ViolationProduct extends Model
                 $source_where[] = ['scrape_date', '=', $data['scrape_date']]; //采集日期
             } else {
                 $source_where[] = ['link_url', '=', $data['link_url']]; //链接地址
+                $source_where[] = ['scrape_date', '=', $data['scrape_date']]; //链接地址
             }
             $source_id_log = $this->where($source_where)->count();
             if ($source_id_log > 0) {