系统消息

back_recharge
gaojie 2019-06-18 14:44:53 +08:00
parent 13c81629c6
commit b621f90eb9
2 changed files with 3 additions and 2 deletions

View File

@ -1148,7 +1148,7 @@ public class HeroLogic {
List<CommonProto.Hero> heroList = drop.getHeroList();
CommonProto.Hero hero = heroList.get(0);
int heroId = hero.getHeroId();
ChatLogic.getInstance().sendSysChatMessage("",1,heroId,0,0,0,0,0);
ChatLogic.getInstance().sendSysChatMessage("玩家XXX获得妖灵师aaa",1,heroId,0,0,0,0,0);
MessageUtil.sendMessage(iSession,1,msgId,heroComposeResponse,true); }
public void getAllPokemon(ISession iSession) throws Exception {

View File

@ -233,10 +233,11 @@ public class CBean2Proto {
chatInfo.setMsg(message);
chatInfo.setHead(playerInfoManager.getHead());
chatInfo.setFrame(playerInfoManager.getFamilyId());
chatInfo.setSoulVal(playerInfoManager.getMaxForce());
return chatInfo.build();
}
public static ChatProto.ChatInfo getSysChatInfoBuilder(String message,int messageType,int type,int itemId,int startTime, int endTime, int priorityLevel, int frequency) {
public static ChatProto.ChatInfo getSysChatInfoBuilder(String message,int messageType,int itemId,int type,int startTime, int endTime, int priorityLevel, int frequency) {
ChatProto.ChatInfo.Builder chatInfo = ChatProto.ChatInfo.newBuilder();
chatInfo.setItemId(itemId);
chatInfo.setTimes(System.currentTimeMillis());