瀏覽代碼

[智价云] 清洗修复

tangyuanwang 2 天之前
父節點
當前提交
bc16f1f927
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      app/Models/Manager/Process/LowPriceGoods.php
  2. 1 0
      app/Models/Manager/Process/ViolationProduct.php

+ 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) {