充值数据统计

This commit is contained in:
yaohunya 2024-07-14 22:34:52 +08:00
parent 9b72b0c38d
commit f60464ffc6

View File

@ -153,11 +153,9 @@ public class RechargeManage {
public String getMonthlyRankingName(int rank){ public String getMonthlyRankingName(int rank){
List<String> playerNames = new ArrayList<>(monthRechargeTop.keySet()); List<String> playerNames = new ArrayList<>(monthRechargeTop.keySet());
if (rank <= playerNames.size()) { if (rank <= playerNames.size()) {
String playerName = playerNames.get(rank - 1); return playerNames.get(rank - 1);
int monthlyRecharge = monthRechargeTop.get(playerName);
return playerName;
} else { } else {
return "ERROR"; return "暂无";
} }
} }
public int getMonthlyRankingValue(int rank){ public int getMonthlyRankingValue(int rank){