转让会长修改

back_recharge
lvxinran 2019-10-17 16:52:57 +08:00
parent 7d255d416b
commit c3f35cce43
1 changed files with 6 additions and 3 deletions

View File

@ -14,6 +14,7 @@ import com.ljsd.jieling.logic.OnlineUserManager;
import com.ljsd.jieling.logic.dao.*;
import com.ljsd.jieling.logic.dao.root.*;
import com.ljsd.jieling.logic.mail.MailLogic;
import com.ljsd.jieling.logic.player.PlayerLogic;
import com.ljsd.jieling.network.session.ISession;
import com.ljsd.jieling.protocols.CommonProto;
import com.ljsd.jieling.protocols.Family;
@ -605,12 +606,14 @@ public class GuildLogic {
}
guildInfo.removeMember(targetType,targetUid);
guildInfo.addMembers(position,targetUid);
PlayerInfoCache cache = RedisUtil.getInstence().getMapEntry(RedisKey.PLAYER_INFO_CACHE, "", String.valueOf(uid), PlayerInfoCache.class);
cache.setGuildPosition(position);
RedisUtil.getInstence().putMapEntry(RedisKey.PLAYER_INFO_CACHE,"",String.valueOf(uid),cache);
// PlayerInfoCache cache = RedisUtil.getInstence().getMapEntry(RedisKey.PLAYER_INFO_CACHE, "", String.valueOf(uid), PlayerInfoCache.class);
// cache.setGuildPosition(position);
// RedisUtil.getInstence().putMapEntry(RedisKey.PLAYER_INFO_CACHE,"",String.valueOf(uid),cache);
PlayerLogic.getInstance().playerInfoUpdate(UserManager.getUser(targetUid));
sendPositionChange(targetUid,position);
User targetUser = UserManager.getUser(targetUid);
if(position == GlobalsDef.CHAIRMAN){
PlayerLogic.getInstance().playerInfoUpdate(user);
guildInfo.removeMember(GlobalsDef.CHAIRMAN,uid);
guildInfo.addMembers(GlobalsDef.MEMBER,uid);
sendPositionChange(uid,GlobalsDef.MEMBER);