This commit is contained in:
Horoli 2025-11-24 12:07:39 +09:00
parent e02ba29923
commit 6fd57b8f89
1 changed files with 5 additions and 1 deletions

View File

@ -117,6 +117,10 @@ async function captureComplexArticles(complex) {
return desc.includes(keyword);
});
});
const mainDescriptionHasKeyword = FILTERS.keywords.some((keyword) =>
description.includes(keyword)
);
console.log(
dealPrice,
description,
@ -129,7 +133,7 @@ async function captureComplexArticles(complex) {
return (
dealPrice > FILTERS.minPrice &&
dealPrice <= FILTERS.maxPrice &&
(description.includes(FILTERS.keywords) || descriptionIsPass) &&
(mainDescriptionHasKeyword || descriptionIsPass) &&
supplySpace >= FILTERS.minSupplySpace &&
useTarget
);