From 5148608d7814b076bf97e0962d9a339eb20fa591 Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Fri, 30 Dec 2022 16:36:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E7=BA=BF=E4=BB=BB=E5=8A=A1=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E9=94=81=E5=AE=9A=E7=BA=A6=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/rtask/module.go | 3 ++- modules/worldtask/module.go | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/rtask/module.go b/modules/rtask/module.go index 1ed121437..b6961c480 100644 --- a/modules/rtask/module.go +++ b/modules/rtask/module.go @@ -163,7 +163,8 @@ func (this *ModuleRtask) initRtaskVerifyHandle() { comm.Rtype39, comm.Rtype50, comm.Rtype51, comm.Rtype53, comm.Rtype54, comm.Rtype57, comm.Rtype58, comm.Rtype60, comm.Rtype62, comm.Rtype64, comm.Rtype69, comm.Rtype72, comm.Rtype88, comm.Rtype104, - comm.Rtype96, comm.Rtype105, comm.Rtype128, comm.Rtype130, comm.Rtype131: + comm.Rtype96, comm.Rtype105, comm.Rtype128, comm.Rtype130, comm.Rtype131, + comm.Rtype141, comm.Rtype142, comm.Rtype143, comm.Rtype144, comm.Rtype145, comm.Rtype146: this.registerVerifyHandle(v.Id, &rtaskCondi{ find: this.modelRtaskRecord.lessEqualFirstParam, verify: this.modelRtaskRecord.verifyFirstGreatEqualParam, diff --git a/modules/worldtask/module.go b/modules/worldtask/module.go index 70d0230e9..be20ef8e8 100644 --- a/modules/worldtask/module.go +++ b/modules/worldtask/module.go @@ -109,10 +109,12 @@ func (this *Worldtask) TaskcondNotify(session comm.IUserSession, condId int32) e nextTaskId = taskConf.IdAfter // 判断玩家等级要求 - if user.Lv < taskConf.Lock { - logFields = append(logFields, log.Field{Key: "当前lv", Value: user.Lv}, log.Field{Key: "期望等级", Value: taskConf.Lock}) - this.Debug("等级不满足", logFields...) - return comm.NewCustomError(pb.ErrorCode_WorldtaskLvNotEnough) + if taskConf.Des == 2 { + if user.Lv < taskConf.Lock { + logFields = append(logFields, log.Field{Key: "当前lv", Value: user.Lv}, log.Field{Key: "期望等级", Value: taskConf.Lock}) + this.Debug("等级不满足", logFields...) + return comm.NewCustomError(pb.ErrorCode_WorldtaskLvNotEnough) + } } //完成任务