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