|
@@ -142,14 +142,14 @@ public class VoteInfoServiceImpl extends ServiceImpl<VoteInfoMapper, VoteInfo> i
|
|
|
|
|
|
}
|
|
|
|
|
|
- public void lsVerify(String phone){
|
|
|
- if(!TextUtils.isEmpty(phone) && votedTimes(phone) < 5){
|
|
|
+ public void lsVerify(Integer operateId, String phone){
|
|
|
+ if(!TextUtils.isEmpty(phone) && votedTimes(operateId, phone) < 5){
|
|
|
throw new APIException("您暂无查看权限");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public Long votedTimes(String phone){
|
|
|
- String source = redisTemplate.opsForValue().get(KeysConst.SOURCE + formatter.format(LocalDate.now()) + phone);
|
|
|
+ public Long votedTimes(Integer operateId, String phone){
|
|
|
+ String source = redisTemplate.opsForValue().get(KeysConst.SOURCE + operateId + "_" + formatter.format(LocalDate.now()) + "_" + phone);
|
|
|
if(TextUtils.isEmpty(source))
|
|
|
return 0L;
|
|
|
return Long.valueOf(source);
|