code 1030
This commit is contained in:
parent
f44d0af84c
commit
b105a3ff13
@ -82,7 +82,7 @@ func (this *apiComp) TalentLearn(session comm.IUserSession, req *pb.HeroTalentLe
|
|||||||
user := this.module.ModuleUser.GetUser(session.GetUserId())
|
user := this.module.ModuleUser.GetUser(session.GetUserId())
|
||||||
if user != nil {
|
if user != nil {
|
||||||
// 校验玩家等级
|
// 校验玩家等级
|
||||||
if talentConf.Condition < user.Lv { // 等级不满足
|
if talentConf.Condition > user.Lv { // 等级不满足
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_UserLvNoEnough,
|
Code: pb.ErrorCode_UserLvNoEnough,
|
||||||
Title: pb.ErrorCode_UserLvNoEnough.ToString(),
|
Title: pb.ErrorCode_UserLvNoEnough.ToString(),
|
||||||
|
Loading…
Reference in New Issue
Block a user