送十万真充活动bug1
parent
d705028181
commit
9c794b1173
|
@ -49,6 +49,7 @@ 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()) {
|
||||
|
@ -101,7 +102,9 @@ public class GiveOneHundredThousandActivity extends AbstractActivity {
|
|||
if (soFarWentDays > day){
|
||||
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()){
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue