好友切磋 优化
This commit is contained in:
parent
5d3a0e40c3
commit
dcc30e776d
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user