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