送10万抽优化3
parent
add76839d0
commit
2f5929a5dc
|
|
@ -49,15 +49,19 @@ public class GiveOneHundredThousandActivity extends AbstractActivity {
|
|||
Map<Integer, SSuperZhenChong> zhenChongMap = SSuperZhenChong.getMap();
|
||||
// 返回对象
|
||||
List<CommonProto.ActivityInfo.MissionInfo> missionInfos = new ArrayList<>(zhenChongMap.size());
|
||||
int soFarWentDays = TimeUtils.getSoFarWentDays(activityMission.getCreatTime(), TimeUtils.now())+1;
|
||||
int rewardValue = 0;
|
||||
for (SSuperZhenChong value : zhenChongMap.values()) {
|
||||
// 参数初始化
|
||||
int missionId = value.getId();
|
||||
int progress = user.getPlayerInfoManager().getDayOfOnlineTime();
|
||||
int state = getState(user,value);
|
||||
int progress = user.getPlayerInfoManager().getDayOfOnlineTime();
|
||||
if (state >= 2){
|
||||
rewardValue += value.getRewardValue();
|
||||
}
|
||||
if (soFarWentDays < value.getDay()){
|
||||
progress = 0;
|
||||
}
|
||||
// 封装proto并返回
|
||||
CommonProto.ActivityInfo.MissionInfo build = CommonProto.ActivityInfo.MissionInfo.newBuilder()
|
||||
.setMissionId(missionId)
|
||||
|
|
|
|||
Loading…
Reference in New Issue