ranfom pool

back_recharge
wangyuan 2019-11-25 10:36:38 +08:00
parent 37f5729309
commit 368006246b
2 changed files with 7 additions and 2 deletions

View File

@ -104,6 +104,9 @@ public class NewWelfareActivity extends AbstractActivity {
return; return;
} }
} }
for(ActivityProgressInfo activityProgressInfo : activityProgressInfoMap.values()){
activityProgressInfo.setState(2);
}
List<SActivityRewardConfig> sActivityRewardConfigs = SActivityRewardConfig.getsActivityRewardConfigByActivityId(id); List<SActivityRewardConfig> sActivityRewardConfigs = SActivityRewardConfig.getsActivityRewardConfigByActivityId(id);
itemAttrs.add(sActivityRewardConfigs.get(0).getReward()); itemAttrs.add(sActivityRewardConfigs.get(0).getReward());
} }

View File

@ -234,11 +234,13 @@ public class HeroLogic {
int j=0; int j=0;
for(int i=0;i<perCount;i++){ for(int i=0;i<perCount;i++){
randCount++; randCount++;
if(pooId == 0){ int specialPoolId = getSpecialPoolByRandcount(type, randCount,poolCount);
pooId = getSpecialPoolByRandcount(type, randCount,poolCount); if(specialPoolId == 0){
if(pooId==0){ if(pooId==0){
pooId = getPooId(sLotterySetting, pooId); pooId = getPooId(sLotterySetting, pooId);
} }
}else{
pooId =specialPoolId;
} }
LOGGER.info("the uid={},the type={},the poolId={}",uid,type,pooId); LOGGER.info("the uid={},the type={},the poolId={}",uid,type,pooId);
totalCount++; totalCount++;