Browse Source

微调,代码错误

master不懂
momo 2 years ago
parent
commit
5327e3e28d
  1. 4
      vote/src/main/java/com/votesystem/ssl/service/impl/VoteRecordServiceImpl.java

4
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<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);
}

Loading…
Cancel
Save