Browse Source

refactor: 修改爬虫配置和亚马逊爬虫中的上传场景参数

- 将上传场景参数从 'digital_yy' 更改为 'digital-yy',以符合新的命名规范
- 该更改旨在提高代码一致性,确保爬虫能够正确处理数字商品的上传
master
lizhuang 3 days ago
parent
commit
677f273244
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/config/crawler.config.js
  2. 1
    1
      src/services/crawlers/amazon/AmazonCrawler.js

+ 1
- 1
src/config/crawler.config.js View File

screenshotDir: 'screenshots', screenshotDir: 'screenshots',
upload: { upload: {
url: 'https://apibase.sohomall.jp/uploaders', url: 'https://apibase.sohomall.jp/uploaders',
scene: 'digital_yy',
scene: 'digital-yy',
timeout: 30000 * 5 timeout: 30000 * 5
}, },
browser: { browser: {

+ 1
- 1
src/services/crawlers/amazon/AmazonCrawler.js View File

}; };
this.uploadConfig = config.common?.upload || { this.uploadConfig = config.common?.upload || {
url: "https://apibase.sohomall.jp/uploaders", url: "https://apibase.sohomall.jp/uploaders",
scene: "digital_yy",
scene: "digital-yy",
timeout: 600000, timeout: 600000,
}; };
} }

Loading…
Cancel
Save