소스 검색

[智价云] 清洗修复

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