森罗幻境埋点

lvxinran 2020-09-19 07:56:53 +08:00
parent e2ab570525
commit fcc07cc679
3 changed files with 18 additions and 4 deletions

View File

@ -3,6 +3,8 @@ package com.ljsd.jieling.handler.map.behavior;
import com.ljsd.jieling.handler.map.TrialInfo;
import com.ljsd.jieling.handler.map.mapType.AbstractMap;
import com.ljsd.jieling.handler.map.mapType.TowerMap;
import com.ljsd.jieling.ktbeans.ReportEventEnum;
import com.ljsd.jieling.ktbeans.ReportUtil;
import com.ljsd.jieling.logic.rank.rankImpl.AbstractRank;
import com.ljsd.jieling.logic.rank.RankContext;
import com.ljsd.jieling.logic.rank.RankEnum;
@ -58,6 +60,7 @@ public class FourtyTwoBehavior extends BaseBehavior {
towerRank.addRank(user.getId(),"", floor,(int)(time/1000));
}
}
ReportUtil.onReportEvent(user, ReportEventEnum.COMPLETE_PANOPTIC_MIRROR.getType(),trialInfo.getFloor());
user.getUserMissionManager().onGameEvent(user, GameEvent.COPY_TOWER_LEVEL, floor);
mapManager.setTrialFloor(floor + 1);
mapManager.setTrialEnergy(0);

View File

@ -10,6 +10,8 @@ import com.ljsd.jieling.handler.map.*;
import com.ljsd.jieling.handler.map.behavior.BaseBehavior;
import com.ljsd.jieling.handler.map.behavior.BehaviorUtil;
import com.ljsd.jieling.ktbeans.KtEventUtils;
import com.ljsd.jieling.ktbeans.ReportEventEnum;
import com.ljsd.jieling.ktbeans.ReportUtil;
import com.ljsd.jieling.ktbeans.parmsBean.ParamEventBean;
import com.ljsd.jieling.logic.dao.TeamPosHeroInfo;
import com.ljsd.jieling.logic.dao.TeamPosManager;
@ -71,9 +73,9 @@ public class TowerMap extends AbstractMap {
User user = UserManager.getUser(uid);
//进图时检测是否需要重置
MapLogic.getInstance().checkTrialReset(user);
MapManager mapManager = user.getMapManager();
TrialInfo trialInfo = mapManager.getTrialInfo();
ReportUtil.onReportEvent(user, ReportEventEnum.START_PANOPTIC_MIRROR.getType(),trialInfo.getFloor());
if(mapManager.getCurMapType()!=0&&mapManager.getCurMapType()!=type){
MapLogic.getInstance().getMap(user).autoExitMap(user);
if(!trialInfo.getMapInfo().isEmpty()){
@ -472,6 +474,7 @@ public class TowerMap extends AbstractMap {
fastFightResponseBuilder.setFightData(fightResult.getFightData());
// LOGGER.info("endFight() uid=>{},nextEventId=>{}", uid, nextEventId);
MapMissionManager.updateMapMission(user, EventType.fightEvent, groupId, checkResult[1]);
ReportUtil.onReportEvent(user,ReportEventEnum.CHALLENGE_PANOPTIC_MIRROR_ENEMY.getType(),trialInfo.getFloor(),resultCode==1?"胜利":"失败");
// LOGGER.info("endFight() uid=>{} sMonsterGroup.getRewardgroup()=>{} misson=>{} eventDrop=>{}, missionDrop=>{}", uid, sMonsterGroup.getRewardgroup(), fastFightResponse.getMission(), fastFightResponse.getEnventDrop(), fastFightResponse.getMissionDrop());
}
@ -648,6 +651,11 @@ public class TowerMap extends AbstractMap {
}
}
}
try {
ReportUtil.onReportEvent(user,ReportEventEnum.LEAVE_PANOPTIC_MIRROR.getType(),mapManager.getTrialInfo().getFloor());
}catch (Exception e){
e.printStackTrace();
}
}
}

View File

@ -52,11 +52,11 @@ public enum ReportEventEnum {
COMPLETE_CHECHI(39,"start_chechi", new CommonEventHandler(),new String[]{"stage_id","stage_type","Integral_entrance","Integral"}),
START_PANOPTIC_MIRROR(40,"start_panoptic_mirror", new CommonEventHandler(),new String[]{""}),
START_PANOPTIC_MIRROR(40,"start_panoptic_mirror",new CommonEventHandler(),new String[]{"Panoptic_Mirror_id"}),
CHALLENGE_PANOPTIC_MIRROR_ENEMY_END(41,"challenge_panoptic_mirror_enemy_end", new CommonEventHandler(),new String[]{""}),
CHALLENGE_PANOPTIC_MIRROR_ENEMY(41,"challenge_panoptic_mirror_enemy", new CommonEventHandler(),new String[]{"Panoptic_Mirror_id","battle_result","hero_id"}),
COMPLETE_PANOPTIC_MIRROR(42,"complete_panoptic_mirror", new CommonEventHandler(),new String[]{""}),
COMPLETE_PANOPTIC_MIRROR(42,"complete_panoptic_mirror", new CommonEventHandler(),new String[]{"Panoptic_Mirror_id"}),
EQUIP_SYNTHESIS(43,"equip_synthesis", new CommonEventHandler(),new String[]{"item_id","item_name","cost_item_id","cost_amount"}),
@ -78,6 +78,9 @@ public enum ReportEventEnum {
START_TIANGONG(53,"start_tiangong",new CommonEventHandler(),new String[]{"stage_id","stage_type","rewards_id_list","rewards_num_list"}),
TREASURE_COMPOSITION(54,"treasure_composition",new CommonEventHandler(),new String[]{"hero_id","item_level","reward_list","reward_nums_list"}),
LEAVE_PANOPTIC_MIRROR(55,"leave_panoptic_mirror",new CommonEventHandler(),new String[]{"Panoptic_Mirror_id"}),
VIP_LEVEL_UP(100,"", new VipLevelUpEventHandler(),new String[]{""});