|
|
@ -72,7 +72,7 @@ public class VoteRecordServiceImpl implements IVoteRecordService { |
|
|
|
// }
|
|
|
|
|
|
|
|
private int isInIpRestrictAddress(String aid, String ipAddress){ |
|
|
|
Map<String,int> aidMap = (Map<String, int>) redisUtils.get(ipAddress); |
|
|
|
Map<String,Object> aidMap = (Map<String,Object>) redisUtils.get(ipAddress); |
|
|
|
|
|
|
|
// Map<String,Object> ipMap = (Map<String, Object>) 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<String,int> aidMap = new HashMap<>(); |
|
|
|
Map<String,Object> aidMap = new HashMap<>(); |
|
|
|
aidMap.put(aid,userTotalVotes); |
|
|
|
redisUtils.set(ipAddress,aidMap,time); |
|
|
|
} |
|
|
|