好友切磋 优化

This commit is contained in:
liwei1dao 2023-04-12 17:37:35 +08:00
parent 5d3a0e40c3
commit dcc30e776d
2 changed files with 2 additions and 1 deletions

View File

@ -57,6 +57,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ItemsGetlistReq)
} }
} }
} }
} }
session.SendMsg(string(this.module.GetType()), "getlist", &pb.ItemsGetlistResp{Grids: items}) session.SendMsg(string(this.module.GetType()), "getlist", &pb.ItemsGetlistResp{Grids: items})
return return

View File

@ -42,7 +42,7 @@ func (this *apiComp) Qiecuo(session comm.IUserSession, req *pb.PracticeQiecuoReq
} }
if result.Status == 1 || fresult.Status == 1 { //已经在战斗中了 if result.Status == 1 || fresult.Status == 1 { //已经在战斗中了
if result.Id == fresult.Id { //两个人正在战斗中 if result.Battid == fresult.Battid { //两个人正在战斗中
if battle, err = this.module.pvp.QueryBattle(result.Battid); err != nil { if battle, err = this.module.pvp.QueryBattle(result.Battid); err != nil {
this.module.Error("查询pvp数据失败!", log.Field{Key: "id", Value: result.Battid}, log.Field{Key: "err", Value: err.Error()}) this.module.Error("查询pvp数据失败!", log.Field{Key: "id", Value: result.Battid}, log.Field{Key: "err", Value: err.Error()})
code = pb.ErrorCode_SystemError code = pb.ErrorCode_SystemError