升级好礼活动修复领奖之后bug
parent
beb23ae312
commit
a238a0b9a6
|
@ -34,7 +34,7 @@ public class GetPhoneRewardRequestHandler extends BaseHandler<PlayerInfoProto.Ge
|
||||||
rewardIds[0] = reward;
|
rewardIds[0] = reward;
|
||||||
int uid = iSession.getUid();
|
int uid = iSession.getUid();
|
||||||
User user = UserManager.getUser(uid);
|
User user = UserManager.getUser(uid);
|
||||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user,rewardIds, 1, 1, BIReason.BIND_PHONE);
|
CommonProto.Drop.Builder drop = ItemUtil.drop(user,rewardIds, 1, 0, BIReason.BIND_PHONE);
|
||||||
if(user.getPlayerInfoManager().getPhoneBindInfo().getState()!=1){
|
if(user.getPlayerInfoManager().getPhoneBindInfo().getState()!=1){
|
||||||
throw new ErrorCodeException(ErrorCode.PHONE_GET);
|
throw new ErrorCodeException(ErrorCode.PHONE_GET);
|
||||||
}
|
}
|
||||||
|
|
|
@ -664,8 +664,8 @@ public class ActivityLogic implements IEventHandler{
|
||||||
}
|
}
|
||||||
SGlobalActivity sGlobalActivity = SGlobalActivity.getsGlobalActivityMap().get(activityId);
|
SGlobalActivity sGlobalActivity = SGlobalActivity.getsGlobalActivityMap().get(activityId);
|
||||||
if(sGlobalActivity.getResetGrade()==0){
|
if(sGlobalActivity.getResetGrade()==0){
|
||||||
activityMission.setActivityState(ActivityType.CLOSE_STATE);
|
activityMission.setActivityState(ActivityType.FINISH_STATE);
|
||||||
Poster.getPoster().dispatchEvent(new ActivityStateChangeEvent(uid,activityId,ActivityType.CLOSE_STATE));
|
Poster.getPoster().dispatchEvent(new ActivityStateChangeEvent(uid,activityId,ActivityType.FINISH_STATE));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class ActivityStateChangeHandler implements IEventHandler {
|
||||||
System.out.println("----------------send buy for activity" + sGlobalActivity.getId());
|
System.out.println("----------------send buy for activity" + sGlobalActivity.getId());
|
||||||
System.out.println("----------------send buy for goodsiD" + sGlobalActivity.getCanBuyRechargeId());
|
System.out.println("----------------send buy for goodsiD" + sGlobalActivity.getCanBuyRechargeId());
|
||||||
}
|
}
|
||||||
}else if(state == ActivityType.CLOSE_STATE){
|
}else if(state == ActivityType.FINISH_STATE){
|
||||||
List<SGlobalActivity> sGlobalActivities = SGlobalActivity.sGlobalActivityMapByOpenRules.getOrDefault(3, new ArrayList<>(0));
|
List<SGlobalActivity> sGlobalActivities = SGlobalActivity.sGlobalActivityMapByOpenRules.getOrDefault(3, new ArrayList<>(0));
|
||||||
sGlobalActivities.stream().filter(s->s.getOpenRules()[1] == activityId).forEach(s->{
|
sGlobalActivities.stream().filter(s->s.getOpenRules()[1] == activityId).forEach(s->{
|
||||||
ActivityMission activityMissionWillOpen = user.getActivityManager().getActivityMissionMap().get(s.getId());
|
ActivityMission activityMissionWillOpen = user.getActivityManager().getActivityMissionMap().get(s.getId());
|
||||||
|
|
Loading…
Reference in New Issue