登峰造极bug修改

DESKTOP-98AVA47\Administrator 2021-09-10 10:13:34 +08:00
parent e0612fe088
commit 9cc7e78add
2 changed files with 14 additions and 9 deletions

View File

@ -10,10 +10,7 @@ import com.ljsd.jieling.ktbeans.ReportUtil;
import com.ljsd.jieling.logic.GlobalDataManaager;
import com.ljsd.jieling.logic.GlobleSystemLogic;
import com.ljsd.jieling.logic.activity.ActivityLogic;
import com.ljsd.jieling.logic.activity.event.NewWelfareEvent;
import com.ljsd.jieling.logic.activity.event.NewWelfareTypeEnum;
import com.ljsd.jieling.logic.activity.event.Poster;
import com.ljsd.jieling.logic.activity.event.SuperBoxEvent;
import com.ljsd.jieling.logic.activity.event.*;
import com.ljsd.jieling.logic.activity.fourChallenge.FourChallengeLogic;
import com.ljsd.jieling.logic.dao.*;
import com.ljsd.jieling.logic.dao.root.GlobalSystemControl;
@ -232,6 +229,8 @@ public class GetPlayerInfoHandler extends BaseHandler{
Poster.getPoster().dispatchEvent(new SuperBoxEvent(user.getId(),SuperBoxEvent.default_id));
// 超值基金,老玩家兼容
Poster.getPoster().dispatchEvent(new SuperBoxEvent(user.getId(),SuperBoxEvent.fund_old_user));
// 登峰造极孙悟空
Poster.getPoster().dispatchEvent(new HeroUpStarEvent(user.getId(),10023,0));
user.getUserMissionManager().onGameEvent(user,GameEvent.DAILY_TASK_TYPE,0,user);
MessageUtil.sendIndicationMessage(iSession, 1, MessageTypeProto.MessageType.WorldLevelIndication_VALUE, PlayerInfoProto.WorldLevelIndication.newBuilder().setWorldLeve(GlobleSystemLogic.getGlobalWorldLevelCache()).build(), true);
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.GET_PLAYERINFO_RESPONSE_VALUE, getPlayerInfoResponse, true);

View File

@ -34,13 +34,19 @@ public class HeroStarActivity extends AbstractActivity {
@Override
public void onEvent(IEvent event) throws Exception {
HeroUpStarEvent heroUpStarEvent = (HeroUpStarEvent) event;
if (!(event instanceof HeroUpStarEvent)) {
int uid = 0;
int heroTid = 0;
if (event instanceof HeroUpStarEvent) {
heroTid = ((HeroUpStarEvent) event).getHeroTid();
uid = ((HeroUpStarEvent) event).getUid();
}
else if (event instanceof FiveStarGetEvent){
heroTid = ((FiveStarGetEvent) event).getHeroid();
uid = ((FiveStarGetEvent) event).getUid();
}else {
return;
}
User user = UserManager.getUser(heroUpStarEvent.getUid());
int heroTid = ((HeroUpStarEvent) event).getHeroTid();
User user = UserManager.getUser(uid);
ActivityMission activityMission = user.getActivityManager().getActivityMissionMap().get(id);
if( null == activityMission){