diff --git a/src/main/java/com/yutou/qqbot/models/Animal/TurnipProphet.java b/src/main/java/com/yutou/qqbot/models/Animal/TurnipProphet.java index 4700e87..644bfe3 100644 --- a/src/main/java/com/yutou/qqbot/models/Animal/TurnipProphet.java +++ b/src/main/java/com/yutou/qqbot/models/Animal/TurnipProphet.java @@ -351,7 +351,7 @@ public class TurnipProphet extends Model { map.put(TurnipProphet.TurnipData.MIX, tmp[15]); map.put(TurnipProphet.TurnipData.MAX, tmp[16]); } else { - if (!array.toJavaList(String.class).contains(tmp[0])) { + if (!array.contains(tmp[0])) { JSONObject json = new JSONObject(); json.put(TurnipProphet.TurnipData.MODEL, tmp[0]); json.put(TurnipProphet.TurnipData.PR, tmp[1]); diff --git a/src/main/java/com/yutou/qqbot/models/WebSign/Tsdm.java b/src/main/java/com/yutou/qqbot/models/WebSign/Tsdm.java index ce05800..90e0402 100644 --- a/src/main/java/com/yutou/qqbot/models/WebSign/Tsdm.java +++ b/src/main/java/com/yutou/qqbot/models/WebSign/Tsdm.java @@ -71,7 +71,6 @@ public class Tsdm extends Model { WebDriver driver = WebClient.getInstance().getWebDriver(); try { driver.get("https://www.tsdm39.net/forum.php"); - driver.navigate().refresh(); getTsdm(array, driver); boolean isSign = false; for (WebElement element : driver.findElements(By.xpath("//a"))) { @@ -125,8 +124,6 @@ public class Tsdm extends Model { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); - System.out.println("e = " + e); - getTsdm(array, driver); } }