zhangshanxue 2019-08-26 21:14:09 +08:00
parent 989d0a2d85
commit a2ffa2fbfe
4 changed files with 11 additions and 4 deletions

View File

@ -138,7 +138,7 @@ public class GetPlayerInfoHandler extends BaseHandler{
try {
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.GET_PLAYERINFO_RESPONSE_VALUE, getPlayerInfoResponse, true);
ActivityLogic.getInstance().flushForLogin(user);
DoFix.getInstance().loginFix(user);
// DoFix.getInstance().loginFix(user);
if(playerInfoManager.getIsdayFirst()==0){
playerInfoManager.setIsdayFirst(1);
}

View File

@ -188,7 +188,7 @@ public class MapLogic {
}
user.setMapManager(mapManager);
user.getUserMissionManager().onGameEvent(user,GameEvent.PlAY_STORY,SChallengeConfig.sChallengeConfigs.get(mapId).getType(),1);
Poster.getPoster().dispatchEvent(new StoryEvent(user.getId()));
Poster.getPoster().dispatchEvent(new StoryEvent(user.getId(),1));
} else if (mapManager.getCurMapId() != mapId) {
MessageUtil.sendErrorResponse(iSession, 0, messageType.getNumber(), "地图错误,应进入" + mapManager.getCurMapId());
@ -1813,6 +1813,7 @@ public class MapLogic {
CommonProto.Drop.Builder dropBuilder = ItemUtil.drop(user, sChallengeMapConfig.getSweepingAward(), 1, 0, BIReason.MAP_SWEEP_REWARD);
mapSweepResponse.addDrop(dropBuilder);
}
Poster.getPoster().dispatchEvent(new StoryEvent(user.getId(),count));
user.getUserMissionManager().onGameEvent(user, GameEvent.STORY_FIGHT, mapId,1,count);
user.getUserMissionManager().onGameEvent(user, GameEvent.PlAY_STORY, type,count);
MessageUtil.sendMessage(session, 1, messageType.getNumber(), mapSweepResponse.build(), true);

View File

@ -18,7 +18,7 @@ class CopyExpectRankActivity extends ExpectRankActivity {
public void onEvent(IEvent event) throws Exception {
if (!(event instanceof StoryEvent))
return;
update(UserManager.getUser(((StoryEvent) event).getUid()), 1);
update(UserManager.getUser(((StoryEvent) event).getUid()), ((StoryEvent) event).getCount());
}
}

View File

@ -6,12 +6,18 @@ package com.ljsd.jieling.logic.activity.event;
public class StoryEvent implements IEvent {
private int uid;
private int count;
public StoryEvent(int uid) {
public StoryEvent(int uid, int count) {
this.uid = uid;
this.count = count;
}
public int getUid() {
return uid;
}
public int getCount() {
return count;
}
}