Skip to content

Commit

Permalink
1.修复黑名单无提示bug
Browse files Browse the repository at this point in the history
2.修复选英雄战绩筛选后无数据
  • Loading branch information
WuYi5451 committed Nov 18, 2024
1 parent 21a5aab commit 3477240
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,14 @@ public void actionPerformed(ActionEvent e) {
//窗口居中
jFrame.setLocationRelativeTo(null);

File file = new File(GameConstant.BLACK_LIST_FILE);
if (!FileUtil.exist(file)) {
FileUtil.mkdir(file);
}
BlackListMatchPanel blackListMatchPanel = new BlackListMatchPanel(true);
jFrame.add(blackListMatchPanel);
jFrame.setVisible(true);
List<String> blacklistFiles = FileUtil.listFileNames(new File(GameConstant.BLACK_LIST_FILE).getAbsolutePath());

List<String> blacklistFiles = FileUtil.listFileNames(file.getAbsolutePath());
List<String> page = ListUtil.page(0, FrameSetting.PAGE_SIZE - 1, blacklistFiles);
List<BlackListBO> blackLists = new ArrayList<BlackListBO>();
for (String s : page) {
Expand All @@ -54,7 +57,6 @@ public void actionPerformed(ActionEvent e) {
blackLists.add(blackListBO);
}
blackListMatchPanel.resetIndex();

blackListMatchPanel.setData(blackLists);
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void setData(List<BlackListBO> data) {
panelContainer.repaint();
this.add(panelContainer);
} else {
FrameTipUtil.errorOccur("请到战绩查询羁押新犯人");
FrameTipUtil.errorOccur("请到战绩查询点开详情后召唤师姓名右键 羁押新犯人");
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/helper/frame/panel/result/ResultTextPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public ResultTextPane() {
//设置全局结果展示面板
FrameInnerCache.resultTextPane = this;
// 双击清屏
this.addMouseListener(clear());
//this.addMouseListener(clear());
}

public static ResultTextPane builder() {
Expand All @@ -35,9 +35,9 @@ private MouseListener clear() {
public void mouseClicked(MouseEvent e) {
//如果是双击,清屏
//noinspection AlibabaUndefineMagicConstant
if (e.getClickCount() == 2) {
FrameMsgUtil.clear();
}
// if (e.getClickCount() == 2) {
// FrameMsgUtil.clear();
// }
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/helper/services/lcu/ChampSelectStrategy.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private void showMatchHistory() throws IOException {
if (selectMode.equals(-1)) {
productsMatchHistory = sgpApi.getProductsMatchHistoryByPuuid(region, puuid, 0, 20);
} else {
productsMatchHistory = sgpApi.getProductsMatchHistoryByPuuid(region, puuid, 0, 20, "cq_" + selectMode);
productsMatchHistory = sgpApi.getProductsMatchHistoryByPuuid(region, puuid, 0, 20, "q_" + selectMode);
}
SGPRank rank = sgpApi.getRankedStatsByPuuid(puuid);
SummonerAlias alias = sgpApi.getSummerNameByPuuids(puuid);
Expand Down

0 comments on commit 3477240

Please sign in to comment.