战报功能,好友类型补充和报错修改

back_recharge
duhui 2021-01-11 17:13:17 +08:00
parent 98967d13ce
commit 188952ad47
3 changed files with 4 additions and 3 deletions

View File

@ -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]);

View File

@ -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);

View File

@ -85,7 +85,7 @@ public class FightRecordLogic {
}
// 获取类型数据
List<String> strings = valueMap.get(multiKey);
if (strings.isEmpty()){
if (strings == null || strings.isEmpty()){
return null;
}
// 遍历