back_recharge
wangyuan 2019-07-30 11:18:09 +08:00
parent 4be1818716
commit 982d97cd84
4 changed files with 6 additions and 3 deletions

View File

@ -7,7 +7,7 @@ public enum KTGameType {
STORY("故事副本", 4),
ARENA("竞技场",5),
CHALLENGE_SECURE("挑战秘境BOSS",6),
TAKE_SECURE_REWARD("领取外敌奖励",7);
TAKE_SECURE_REWARD("领取秘境奖励",7);
// 成员变量
private String name;
private int index;

View File

@ -35,6 +35,8 @@ public class ParamEventBean {
eventTypeStringMap.put(UserRegister,"register_0");
eventTypeStringMap.put(UserTaskEvent,"task_2");
eventTypeStringMap.put(UserLogin,"login_1");
eventTypeStringMap.put(UserGameType,"activity_4");
}
private List<String> event_s = new ArrayList<>();

View File

@ -368,7 +368,7 @@ public class CombatLogic {
}
FightInfoProto.TakeAventureRewardResponse build = FightInfoProto.TakeAventureRewardResponse.newBuilder().setDrop(adventureFastReward.get(1)).setRandomDrop(adventureFastReward.get(2)).build();
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.ADVENTURE_REWARD_RESPONSE_VALUE,build,true);
KtEventUtils.onKtEvent(user,ParamEventBean.UserGameType,KTGameType.TAKE_SECURE_REWARD,type*10+position);
KtEventUtils.onKtEvent(user,ParamEventBean.UserGameType,KTGameType.TAKE_SECURE_REWARD.getIndex(),type*10+position);
}
public Map<Integer,CommonProto.Drop> getAdventureReward(User user, int position,boolean sendMail,int reason) throws Exception {
@ -759,7 +759,7 @@ public class CombatLogic {
}catch (Exception e){
LOGGER.error("the exception={}",e);
}finally {
KtEventUtils.onKtEvent(user, ParamEventBean.UserGameType,KTGameType.CHALLENGE_SECURE,bossGroupId);
KtEventUtils.onKtEvent(user, ParamEventBean.UserGameType,KTGameType.CHALLENGE_SECURE.getIndex(),bossGroupId);
RedisUtil.getInstence().releaseDistributedLock(RedisKey.ADVENTRUEN_BOSS_CHALLENGE_LOCK_KEY,bossId, Integer.toString(uid));
}

View File

@ -37,6 +37,7 @@ public class HttpPool {
}
public static void sendPost(String url, String info) {
System.out.println(info);
HttpPost httpPost = new HttpPost(url);
HttpResponse httpResponse;
int sendTimes = 0;