修复大头菜报错问题(FastJSON)

This commit is contained in:
Yutousama 2022-05-03 11:08:15 +08:00
parent 50823587dd
commit 575df40591
2 changed files with 1 additions and 4 deletions

View File

@ -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]);

View File

@ -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);
}
}