|
|
@ -145,7 +145,7 @@ public class VoteRecordServiceImpl implements IVoteRecordService { |
|
|
|
if(0 != result){ |
|
|
|
userTotalVotes = result; |
|
|
|
if(userTotalVotes >= totalVotes){ |
|
|
|
return ResultFactory.buildFailResult("你已投过票或该IP投票次数已达上限") |
|
|
|
return ResultFactory.buildFailResult("你已投过票或该IP投票次数已达上限"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -186,7 +186,7 @@ public class VoteRecordServiceImpl implements IVoteRecordService { |
|
|
|
if(0 != result){ |
|
|
|
// userTotalVotes = result;
|
|
|
|
if(result >= totalVotes){ |
|
|
|
return ResultFactory.buildFailResult("你已投过票或该IP投票次数已达上限") |
|
|
|
return ResultFactory.buildFailResult("你已投过票或该IP投票次数已达上限"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -274,7 +274,7 @@ public class VoteRecordServiceImpl implements IVoteRecordService { |
|
|
|
if(0 != result){ |
|
|
|
userTotalVotes = result; |
|
|
|
if(userTotalVotes >= 0){ |
|
|
|
return ResultFactory.buildFailResult("你已投过票或该IP投票次数已达上限") |
|
|
|
return ResultFactory.buildFailResult("你已投过票或该IP投票次数已达上限"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -319,7 +319,7 @@ public class VoteRecordServiceImpl implements IVoteRecordService { |
|
|
|
if(0 != result){ |
|
|
|
// userTotalVotes = result;
|
|
|
|
if(result >= totalVotes){ |
|
|
|
return ResultFactory.buildFailResult("你已投过票或该IP投票次数已达上限") |
|
|
|
return ResultFactory.buildFailResult("你已投过票或该IP投票次数已达上限"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|