diff --git a/src/main/java/cn/fw/freya/service/crawl/impl/KuaiShouCrawl.java b/src/main/java/cn/fw/freya/service/crawl/impl/KuaiShouCrawl.java index 276c748..b387d57 100644 --- a/src/main/java/cn/fw/freya/service/crawl/impl/KuaiShouCrawl.java +++ b/src/main/java/cn/fw/freya/service/crawl/impl/KuaiShouCrawl.java @@ -105,11 +105,10 @@ public class KuaiShouCrawl implements CrawlStrategy, SmartLifecycle { Arrays.stream(DataTypeEnum.values()).forEach(item1 -> threadPoolExecutor.execute(() -> { Integer dataType = item1.getValue(); - if (Objects.equals(dataType, 2)) { + if (Objects.equals(dataType, 2)) this.task(item.getAccountNo(), dataType, 1); - } else { + else this.task(item.getAccountNo(), dataType, null); - } }) ) ); @@ -914,7 +913,8 @@ public class KuaiShouCrawl implements CrawlStrategy, SmartLifecycle { throw new BusinessException(e.getMessage()); } this.exitBrowser(accountNo, uuid); - log.info("key: {}, value: {}", key, sig3Map.get(key)); + if (videoDimension) + key += "#" + page; return sig3Map.get(key); }