最大次数校验
This commit is contained in:
parent
35b142fb74
commit
98f1234891
@ -57,11 +57,10 @@ func (this *apiComp) SelectDraw(session comm.IUserSession, req *pb.HeroSelectDra
|
||||
return
|
||||
}
|
||||
|
||||
if cfgGlobal.NewDrawcardAttemptsNums >= heroRecord.Selectcount { // 次数校验
|
||||
if cfgGlobal.NewDrawcardAttemptsNums <= heroRecord.Selectcount { // 次数校验
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_HeroSelectMaxCount,
|
||||
Title: pb.ErrorCode_HeroSelectMaxCount.ToString(),
|
||||
Message: err.Error(),
|
||||
Code: pb.ErrorCode_HeroSelectMaxCount,
|
||||
Title: pb.ErrorCode_HeroSelectMaxCount.ToString(),
|
||||
}
|
||||
return
|
||||
}
|
||||
@ -225,6 +224,8 @@ func (this *apiComp) SelectDraw(session comm.IUserSession, req *pb.HeroSelectDra
|
||||
return
|
||||
}
|
||||
|
||||
session.SendMsg(string(this.module.GetType()), "selectdraw", &pb.HeroSelectDrawResp{})
|
||||
session.SendMsg(string(this.module.GetType()), "selectdraw", &pb.HeroSelectDrawResp{
|
||||
Record: heroRecord,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user