diff --git a/src/main/java/helper/frame/panel/history/BlackListHistoryButton.java b/src/main/java/helper/frame/panel/history/BlackListHistoryButton.java index 9f686f0..2957013 100644 --- a/src/main/java/helper/frame/panel/history/BlackListHistoryButton.java +++ b/src/main/java/helper/frame/panel/history/BlackListHistoryButton.java @@ -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 blacklistFiles = FileUtil.listFileNames(new File(GameConstant.BLACK_LIST_FILE).getAbsolutePath()); - + List blacklistFiles = FileUtil.listFileNames(file.getAbsolutePath()); List page = ListUtil.page(0, FrameSetting.PAGE_SIZE - 1, blacklistFiles); List blackLists = new ArrayList(); for (String s : page) { @@ -54,7 +57,6 @@ public void actionPerformed(ActionEvent e) { blackLists.add(blackListBO); } blackListMatchPanel.resetIndex(); - blackListMatchPanel.setData(blackLists); } }; diff --git a/src/main/java/helper/frame/panel/history/BlackListMatchPanel.java b/src/main/java/helper/frame/panel/history/BlackListMatchPanel.java index afa9478..7525325 100644 --- a/src/main/java/helper/frame/panel/history/BlackListMatchPanel.java +++ b/src/main/java/helper/frame/panel/history/BlackListMatchPanel.java @@ -181,7 +181,7 @@ public void setData(List data) { panelContainer.repaint(); this.add(panelContainer); } else { - FrameTipUtil.errorOccur("请到战绩查询羁押新犯人"); + FrameTipUtil.errorOccur("请到战绩查询点开详情后召唤师姓名右键 羁押新犯人"); } } diff --git a/src/main/java/helper/frame/panel/result/ResultTextPane.java b/src/main/java/helper/frame/panel/result/ResultTextPane.java index b1a6c8b..4b177f9 100644 --- a/src/main/java/helper/frame/panel/result/ResultTextPane.java +++ b/src/main/java/helper/frame/panel/result/ResultTextPane.java @@ -22,7 +22,7 @@ public ResultTextPane() { //设置全局结果展示面板 FrameInnerCache.resultTextPane = this; // 双击清屏 - this.addMouseListener(clear()); + //this.addMouseListener(clear()); } public static ResultTextPane builder() { @@ -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 diff --git a/src/main/java/helper/services/lcu/ChampSelectStrategy.java b/src/main/java/helper/services/lcu/ChampSelectStrategy.java index 18ea309..bef66d3 100644 --- a/src/main/java/helper/services/lcu/ChampSelectStrategy.java +++ b/src/main/java/helper/services/lcu/ChampSelectStrategy.java @@ -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);