From 5327e3e28d4a6e728da408a96216627e68e1bb5d Mon Sep 17 00:00:00 2001 From: momo <2296828474@qq.com> Date: Wed, 10 May 2023 09:30:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83=EF=BC=8C=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../votesystem/ssl/service/impl/VoteRecordServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }