Skip to content

Commit

Permalink
FIX:修复爬虫缓存异常造成多次重复加载问题
Browse files Browse the repository at this point in the history
  • Loading branch information
scemsjyd committed Jun 24, 2022
1 parent fadb818 commit b7adc89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/github/catvod/crawler/JarLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public boolean load(byte[] jarData) {

public Spider getSpider(String key, String ext) {
String clsKey = key.replace("csp_", "");
if (spiders.contains(clsKey))
if (spiders.containsKey(clsKey))
return spiders.get(clsKey);
if (classLoader == null)
return new SpiderNull();
Expand Down

0 comments on commit b7adc89

Please sign in to comment.