上传pvp主动取消代码
This commit is contained in:
parent
14b784d324
commit
dd41812f61
@ -9,18 +9,18 @@ import (
|
||||
)
|
||||
|
||||
//参数校验
|
||||
func (this *apiComp) CancelCheck(session comm.IUserSession, req *pb.PvpActiveCancelReq) (code pb.ErrorCode) {
|
||||
func (this *apiComp) ActiveCancelCheck(session comm.IUserSession, req *pb.PvpActiveCancelReq) (code pb.ErrorCode) {
|
||||
return
|
||||
}
|
||||
|
||||
///设置战斗阵型
|
||||
func (this *apiComp) Cancel(session comm.IUserSession, req *pb.PvpActiveCancelReq) (code pb.ErrorCode, data proto.Message) {
|
||||
func (this *apiComp) ActiveCancel(session comm.IUserSession, req *pb.PvpActiveCancelReq) (code pb.ErrorCode, data proto.Message) {
|
||||
var (
|
||||
battle *BattleItem
|
||||
ok bool
|
||||
winside int32
|
||||
)
|
||||
if code = this.CancelCheck(session, req); code != pb.ErrorCode_Success {
|
||||
if code = this.ActiveCancelCheck(session, req); code != pb.ErrorCode_Success {
|
||||
return
|
||||
}
|
||||
this.module.lock.RLock()
|
||||
@ -47,6 +47,6 @@ func (this *apiComp) Cancel(session comm.IUserSession, req *pb.PvpActiveCancelRe
|
||||
return
|
||||
}
|
||||
|
||||
session.SendMsg(string(this.module.GetType()), "cancel", &pb.PvpActiveCancelResp{Issucc: true})
|
||||
session.SendMsg(string(this.module.GetType()), "activecancel", &pb.PvpActiveCancelResp{Issucc: true})
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user