转让会长修改
parent
7d255d416b
commit
c3f35cce43
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue