Commit 0222421aaca4c4233df7dab69169c0babbdfa867

Authored by 王明元
1 parent 8649c699

2022年11月4日15:07:44 修复账号误报失效问题

src/main/java/cn/fw/freya/service/crawl/impl/KuaiShouCrawl.java
@@ -105,11 +105,10 @@ public class KuaiShouCrawl implements CrawlStrategy, SmartLifecycle { @@ -105,11 +105,10 @@ public class KuaiShouCrawl implements CrawlStrategy, SmartLifecycle {
105 Arrays.stream(DataTypeEnum.values()).forEach(item1 -> 105 Arrays.stream(DataTypeEnum.values()).forEach(item1 ->
106 threadPoolExecutor.execute(() -> { 106 threadPoolExecutor.execute(() -> {
107 Integer dataType = item1.getValue(); 107 Integer dataType = item1.getValue();
108 - if (Objects.equals(dataType, 2)) { 108 + if (Objects.equals(dataType, 2))
109 this.task(item.getAccountNo(), dataType, 1); 109 this.task(item.getAccountNo(), dataType, 1);
110 - } else { 110 + else
111 this.task(item.getAccountNo(), dataType, null); 111 this.task(item.getAccountNo(), dataType, null);
112 - }  
113 }) 112 })
114 ) 113 )
115 ); 114 );
@@ -914,7 +913,8 @@ public class KuaiShouCrawl implements CrawlStrategy, SmartLifecycle { @@ -914,7 +913,8 @@ public class KuaiShouCrawl implements CrawlStrategy, SmartLifecycle {
914 throw new BusinessException(e.getMessage()); 913 throw new BusinessException(e.getMessage());
915 } 914 }
916 this.exitBrowser(accountNo, uuid); 915 this.exitBrowser(accountNo, uuid);
917 - log.info("key: {}, value: {}", key, sig3Map.get(key)); 916 + if (videoDimension)
  917 + key += "#" + page;
918 return sig3Map.get(key); 918 return sig3Map.get(key);
919 } 919 }
920 920