delete unuse log

back_recharge
wangyuan 2019-08-12 11:15:41 +08:00
parent 042f9310fe
commit 968cf84ebd
2 changed files with 12 additions and 3 deletions

View File

@ -4,9 +4,11 @@ import com.google.protobuf.GeneratedMessage;
import com.ljsd.jieling.config.SErrorCodeEerverConfig;
import com.ljsd.jieling.config.SGuildSetting;
import com.ljsd.jieling.core.GlobalsDef;
import com.ljsd.jieling.db.mongo.MongoUtil;
import com.ljsd.jieling.db.redis.RedisKey;
import com.ljsd.jieling.db.redis.RedisUtil;
import com.ljsd.jieling.globals.BIReason;
import com.ljsd.jieling.globals.Global;
import com.ljsd.jieling.handler.map.MapManager;
import com.ljsd.jieling.logic.OnlineUserManager;
import com.ljsd.jieling.logic.dao.*;
@ -15,6 +17,7 @@ import com.ljsd.jieling.logic.dao.root.GuildInfo;
import com.ljsd.jieling.logic.dao.root.GuildLog;
import com.ljsd.jieling.logic.dao.root.User;
import com.ljsd.jieling.logic.hero.HeroLogic;
import com.ljsd.jieling.logic.mail.MailLogic;
import com.ljsd.jieling.network.session.ISession;
import com.ljsd.jieling.protocols.CommonProto;
import com.ljsd.jieling.protocols.Family;
@ -583,6 +586,11 @@ public class GuildLogic {
public static void releaseGuild(GuildInfo guildInfo) throws Exception {
Map<Integer, Set<Integer>> members = guildInfo.getMembers();
Family.FamilyKickIndication build = Family.FamilyKickIndication.newBuilder().setType(2).build();
String title = SErrorCodeEerverConfig.getI18NMessage("guild_breakup_title");
Set<Integer> chairmans = guildInfo.getMembers().get(GlobalsDef.CHAIRMAN);
Integer chairmanUid = chairmans.iterator().next();
User chairmanUser = UserManager.getUser(chairmanUid);
String content = SErrorCodeEerverConfig.getI18NMessage("guild_breakup_txt",new String[]{guildInfo.getName(),chairmanUser.getPlayerInfoManager().getNickName()});
for(Set<Integer> items : members.values()){
for(Integer sendUid : items){
ISession session = OnlineUserManager.getSessionByUid(sendUid);
@ -591,10 +599,11 @@ public class GuildLogic {
}
User user = UserManager.getUser(sendUid);
user.getPlayerInfoManager().setGuildId(0);
MailLogic.getInstance().sendMail(user.getId(),title,content,"",(int)(System.currentTimeMillis()/1000), Global.MAIL_EFFECTIVE_TIME);
}
}
GuilidManager.removeGuildInfo(guildInfo);
MongoUtil.getInstence().lastUpdate();
}

View File

@ -1118,7 +1118,7 @@ public class HeroLogic {
float score = sPropertyConfig.getScore();
result += propertyValue*score;
LOGGER.info("the propertyId={} the value is ={},propertyValue={},score={}result ={},the value={}",propertyId,propertyValue*score,propertyValue,score,result,propertyValue*score);
//LOGGER.info("the propertyId={} the value is ={},propertyValue={},score={}result ={},the value={}",propertyId,propertyValue*score,propertyValue,score,result,propertyValue*score);
}
return (int)result;
}
@ -1131,7 +1131,7 @@ public class HeroLogic {
propertyValue += heroAttributeMap.get(propertyId);
}
heroAttributeMap.put(propertyId,propertyValue);
LOGGER.info("the propertyId={} the propertyValue is ={},",propertyId,propertyValue);
// LOGGER.info("the propertyId={} the propertyValue is ={},",propertyId,propertyValue);
}
}
public void combinedAttribute(int[][] otherAttriMap,Map<Integer,Integer> heroAttributeMap){