diff --git a/vote/src/main/java/com/votesystem/ssl/service/impl/VoteRecordServiceImpl.java b/vote/src/main/java/com/votesystem/ssl/service/impl/VoteRecordServiceImpl.java index 40aacfa..ff4971a 100644 --- a/vote/src/main/java/com/votesystem/ssl/service/impl/VoteRecordServiceImpl.java +++ b/vote/src/main/java/com/votesystem/ssl/service/impl/VoteRecordServiceImpl.java @@ -72,7 +72,7 @@ public class VoteRecordServiceImpl implements IVoteRecordService { // } private int isInIpRestrictAddress(String aid, String ipAddress){ - Map aidMap = (Map) redisUtils.get(ipAddress); + Map aidMap = (Map) redisUtils.get(ipAddress); // Map ipMap = (Map) redisUtils.get(ipAddress); if (aidMap == null){ @@ -85,7 +85,7 @@ public class VoteRecordServiceImpl implements IVoteRecordService { } private void setCurrentIpuserTotalVotes(String aid, String ipAddress, int userTotalVotes,long time){ - Map aidMap = new HashMap<>(); + Map aidMap = new HashMap<>(); aidMap.put(aid,userTotalVotes); redisUtils.set(ipAddress,aidMap,time); }