战报功能,好友类型补充和报错修改
parent
98967d13ce
commit
188952ad47
|
@ -127,7 +127,7 @@ public class GmService implements RPCRequestGMIFace.Iface {
|
|||
if (cmd.contains("delete")) {
|
||||
FightRecordLogic.getInstance().delete();
|
||||
} else if (cmd.contains("all")){
|
||||
String allValue = FightRecordLogic.getInstance().getAll(Integer.parseInt(parameters[2]));
|
||||
String allValue = FightRecordLogic.getInstance().getAll(Integer.parseInt(parameters[1]));
|
||||
result.setResultMsg(allValue);
|
||||
} else {
|
||||
String oneRecord = FightRecordLogic.getInstance().getOneRecord(parameters[0]);
|
||||
|
|
|
@ -617,7 +617,8 @@ public class ArenaLogic {
|
|||
.setFightId(FightUtil.getFightId(mine.getId(),FightType.Firend.getType()))
|
||||
.build();
|
||||
|
||||
|
||||
// 记录战报
|
||||
FightRecordLogic.getInstance().addRecordMap(mine,build);
|
||||
|
||||
ArenaInfoProto.PlayWithSbResponse response = ArenaInfoProto.PlayWithSbResponse.newBuilder().setFightData(build).build();
|
||||
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.PLAY_WITH_SB_RESPONSE_VALUE,response,true);
|
||||
|
|
|
@ -85,7 +85,7 @@ public class FightRecordLogic {
|
|||
}
|
||||
// 获取类型数据
|
||||
List<String> strings = valueMap.get(multiKey);
|
||||
if (strings.isEmpty()){
|
||||
if (strings == null || strings.isEmpty()){
|
||||
return null;
|
||||
}
|
||||
// 遍历
|
||||
|
|
Loading…
Reference in New Issue