工会解散邮件bug
parent
5776c011ba
commit
cdda1b414e
|
@ -203,10 +203,6 @@ public class UserManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static User getUser(int uid) throws Exception {
|
|
||||||
return getUser(uid,false);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static User getUser(int uid,boolean canNull) throws Exception {
|
public static User getUser(int uid,boolean canNull) throws Exception {
|
||||||
User user = userMap.get(uid);
|
User user = userMap.get(uid);
|
||||||
if (user != null) {
|
if (user != null) {
|
||||||
|
@ -224,6 +220,10 @@ public class UserManager {
|
||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static User getUser(int uid) throws Exception {
|
||||||
|
return getUser(uid,false);
|
||||||
|
}
|
||||||
|
|
||||||
public static User getUserInMem(int uid) {
|
public static User getUserInMem(int uid) {
|
||||||
// User user = userMap.get(uid);
|
// User user = userMap.get(uid);
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -894,6 +894,7 @@ public class GuildLogic {
|
||||||
String content = SErrorCodeEerverConfig.getI18NMessageNeedConvert("guild_breakup_txt",new String[]{guildInfo.getName(),chairmanUser.getPlayerInfoManager().getNickName()},new int[]{0,0},"#");
|
String content = SErrorCodeEerverConfig.getI18NMessageNeedConvert("guild_breakup_txt",new String[]{guildInfo.getName(),chairmanUser.getPlayerInfoManager().getNickName()},new int[]{0,0},"#");
|
||||||
for(Set<Integer> items : members.values()){
|
for(Set<Integer> items : members.values()){
|
||||||
for(Integer sendUid : items){
|
for(Integer sendUid : items){
|
||||||
|
try {
|
||||||
ISession session = OnlineUserManager.getSessionByUid(sendUid);
|
ISession session = OnlineUserManager.getSessionByUid(sendUid);
|
||||||
if(session!=null){
|
if(session!=null){
|
||||||
MessageUtil.sendIndicationMessage(session,1, MessageTypeProto.MessageType.FAMILY_KICK_INDICATION_VALUE,build,true);
|
MessageUtil.sendIndicationMessage(session,1, MessageTypeProto.MessageType.FAMILY_KICK_INDICATION_VALUE,build,true);
|
||||||
|
@ -911,6 +912,9 @@ public class GuildLogic {
|
||||||
user.getPlayerInfoManager().setGuildId(0);
|
user.getPlayerInfoManager().setGuildId(0);
|
||||||
MailLogic.getInstance().sendMail(user.getId(),title,content,"",TimeUtils.nowInt(), Global.MAIL_EFFECTIVE_TIME);
|
MailLogic.getInstance().sendMail(user.getId(),title,content,"",TimeUtils.nowInt(), Global.MAIL_EFFECTIVE_TIME);
|
||||||
}
|
}
|
||||||
|
}catch (Exception e){
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(int i = 1;i<=10;i++){
|
for(int i = 1;i<=10;i++){
|
||||||
|
|
Loading…
Reference in New Issue