code 1030

This commit is contained in:
meixiongfeng 2023-06-09 21:53:44 +08:00
parent f44d0af84c
commit b105a3ff13

View File

@ -82,7 +82,7 @@ func (this *apiComp) TalentLearn(session comm.IUserSession, req *pb.HeroTalentLe
user := this.module.ModuleUser.GetUser(session.GetUserId())
if user != nil {
// 校验玩家等级
if talentConf.Condition < user.Lv { // 等级不满足
if talentConf.Condition > user.Lv { // 等级不满足
errdata = &pb.ErrorData{
Code: pb.ErrorCode_UserLvNoEnough,
Title: pb.ErrorCode_UserLvNoEnough.ToString(),