加入公会任务

back_recharge
lvxinran 2019-10-31 20:47:14 +08:00
parent ff3cd9a3dc
commit 84efb610d8
2 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,7 @@ public class GuildLogic {
PlayerInfoCache cache = RedisUtil.getInstence().getMapEntry(RedisKey.PLAYER_INFO_CACHE, "", String.valueOf(uid), PlayerInfoCache.class);
cache.setGuildPosition(GlobalsDef.CHAIRMAN);
RedisUtil.getInstence().putMapEntry(RedisKey.PLAYER_INFO_CACHE,"",String.valueOf(uid),cache);
user.getUserMissionManager().onGameEvent(user,GameEvent.JOIN_FAMILY);
Family.FamilyCreateResponse build = Family.FamilyCreateResponse.newBuilder()
.setFamilyBaseInfo(CBean2Proto.getFamilyBaseInfo(guildInfo))
.setFamilyUserInfo(CBean2Proto.getFamilyUserInfo(user,GlobalsDef.CHAIRMAN))

View File

@ -632,6 +632,9 @@ public class MissionLoigc {
case TAKE_FRIEND_GIFT:
count = cumulationData.takeFriendGifts;
break;
case JOIN_FAMILY:
count = cumulationData.joinFamilyCount;
break;
default:
count = 0;
break;