Skip to content

Commit

Permalink
兼容MCBBS最新的服务器提升卡名称
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Josef committed Jun 24, 2021
1 parent 3609949 commit d965eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moe/feo/bbstoper/Crawler.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void resolveWebData() {
for (Element rows : listbody.getElementsByTag("tr")) {// tr是表的一行
Elements cells = rows.getElementsByTag("td");// td表示一行的单元格,cells为单元格的合集
String action = cells.get(2).text();
if (!(action.equals("提升(提升卡)")||action.equals("提升(服务器提升卡)"))) {// 这里过滤掉不是提升卡的操作
if (!(action.equals("提升(提升卡)")||action.equals("提升(服务器/交易代理提升卡)"))) {// 这里过滤掉不是提升卡的操作
continue;
}
Element idcell = cells.get(0);// 第一个单元格中包含有id
Expand Down

0 comments on commit d965eaa

Please sign in to comment.