公会战修改

back_recharge
lvxinran 2019-10-18 14:02:40 +08:00
parent 550a383acf
commit 237b1d5683
2 changed files with 4 additions and 0 deletions

View File

@ -662,6 +662,8 @@ public class GuildFightLogic {
String expKey = RedisKey.getKey(RedisKey.FAMILY_FIGHT_TOTAL_EXP,"",false);
//所有星数信息
String totalStar = RedisKey.getKey(RedisKey.FAMILY_FIGHT_TOTAL_STAR,"",false);
//所有血量信息
String attackBlood = RedisKey.getKey(RedisKey.FAMILY_ATTACK_BLOOD,"",false);
Set<String> matchingRank = redisUtil.getZset(matchingKey, 0, redisUtil.getZsetSize(matchingKey));
for(String index:matchingRank){
Map<Integer, FamilyFightInfo> fightDefend = redisUtil.getMapValues(RedisKey.FAMILY_FIGHT, index, Integer.class, FamilyFightInfo.class);
@ -703,6 +705,7 @@ public class GuildFightLogic {
redisUtil.del(extraStar);
redisUtil.del(expKey);
redisUtil.del(totalStar);
redisUtil.del(attackBlood);
Integer fightSign = redisUtil.getMapEntry(RedisKey.FAMILY_FIGHT_FINISH_MATCHING, "", String.valueOf(GameApplication.serverId), int.class);
if(fightSign!=-1){
redisUtil.putMapEntry(RedisKey.FAMILY_FIGHT_FINISH_MATCHING,"",String.valueOf(GameApplication.serverId),0);

View File

@ -613,6 +613,7 @@ public class GuildLogic {
sendPositionChange(targetUid,position);
User targetUser = UserManager.getUser(targetUid);
if(position == GlobalsDef.CHAIRMAN){
MailLogic.getInstance().sendMail(uid,SErrorCodeEerverConfig.getI18NMessage("family_relieve_title"),SErrorCodeEerverConfig.getI18NMessage("family_relieve_txt"),"",(int)(TimeUtils.now()/1000),Global.MAIL_EFFECTIVE_TIME);
guildInfo.removeMember(GlobalsDef.CHAIRMAN,uid);
PlayerLogic.getInstance().playerInfoUpdate(user);
guildInfo.addMembers(GlobalsDef.MEMBER,uid);