送十万真充活动bug1
parent
d705028181
commit
9c794b1173
|
@ -49,6 +49,7 @@ 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 soFarWentDays = TimeUtils.getSoFarWentDays(activityMission.getCreatTime(), TimeUtils.now())+1;
|
||||||
int rewardValue = 0;
|
int rewardValue = 0;
|
||||||
for (SSuperZhenChong value : zhenChongMap.values()) {
|
for (SSuperZhenChong value : zhenChongMap.values()) {
|
||||||
|
@ -101,7 +102,9 @@ public class GiveOneHundredThousandActivity extends AbstractActivity {
|
||||||
if (soFarWentDays > day){
|
if (soFarWentDays > day){
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
int time = user.getPlayerInfoManager().getDayOfOnlineTime();
|
int login = (int)(user.getPlayerInfoManager().getLoginTime() / 1000);
|
||||||
|
int online = TimeUtils.nowInt() - login;
|
||||||
|
int time = user.getPlayerInfoManager().getDayOfOnlineTime() + online;
|
||||||
if (time >= config.getTime()){
|
if (time >= config.getTime()){
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue