kt parm
parent
4be1818716
commit
982d97cd84
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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<>();
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue