Browse Source

feature:观看广告次数上限提高到10次

feature-1.1
Penny 3 years ago
parent
commit
9740d23b72
  1. 2
      bnyer-services/bnyer-img/src/main/java/com/bnyer/img/service/impl/TiktokUserServiceImpl.java

2
bnyer-services/bnyer-img/src/main/java/com/bnyer/img/service/impl/TiktokUserServiceImpl.java

@ -137,7 +137,7 @@ public class TiktokUserServiceImpl implements TiktokUserService {
if(redisService.hasHashKey(redisKey,hashKey)){ if(redisService.hasHashKey(redisKey,hashKey)){
//存在键,判断次数,次数达标则不可下载 //存在键,判断次数,次数达标则不可下载
Integer downloadNum = redisService.getCacheMapValue(redisKey, hashKey); Integer downloadNum = redisService.getCacheMapValue(redisKey, hashKey);
if(downloadNum >= 5){ if(downloadNum >= 10){
return true; return true;
}else{ }else{
return false; return false;

Loading…
Cancel
Save