From 48bcda8afccc45d7b0ac08e00b627fe30e1b0014 Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Fri, 26 May 2023 13:38:44 +0800 Subject: [PATCH] Rtype61 --- modules/rtask/module.go | 6 +++--- modules/worldtask/api_accept.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/rtask/module.go b/modules/rtask/module.go index 9eb0be7e5..5f3aa1b89 100644 --- a/modules/rtask/module.go +++ b/modules/rtask/module.go @@ -100,7 +100,7 @@ func (this *ModuleRtask) getHandle(tt comm.TaskType) (handles []*rtaskCondHandle handles = append(handles, handle) this.registerVerifyHandle(v.Id, handle) // 两个参数 第一个大于等于 第二个等于 - case comm.Rtype159, comm.Rtype160, comm.Rtype75: + case comm.Rtype61, comm.Rtype159, comm.Rtype160, comm.Rtype75: handle := &rtaskCondHandle{ condId: v.Id, verify: this.modelRtaskRecord.verifyMultiEqual, //两个参数 等于 @@ -109,7 +109,7 @@ func (this *ModuleRtask) getHandle(tt comm.TaskType) (handles []*rtaskCondHandle handles = append(handles, handle) this.registerVerifyHandle(v.Id, handle) // 一个参数且覆盖 - case comm.Rtype61, comm.Rtype109, comm.Rtype129, comm.Rtype134: + case comm.Rtype109, comm.Rtype129, comm.Rtype134: handle := &rtaskCondHandle{ condId: v.Id, verify: this.modelRtaskRecord.verifyFirstEqualParam, @@ -317,7 +317,7 @@ func (this *ModuleRtask) TriggerTask(uid string, taskParams ...*comm.TaskParam) } func (this *ModuleRtask) processTasks(session comm.IUserSession, taskParams ...*comm.TaskParam) { - + lock, _ := this.modelRtask.userlock(session.GetUserId()) err := lock.Lock() if err != nil { diff --git a/modules/worldtask/api_accept.go b/modules/worldtask/api_accept.go index afcc70fb4..3f95ac4b6 100644 --- a/modules/worldtask/api_accept.go +++ b/modules/worldtask/api_accept.go @@ -37,7 +37,7 @@ func (a *apiComp) Accept(session comm.IUserSession, req *pb.WorldtaskAcceptReq) // 当前任务配置 curTaskConf, err := a.module.configure.getWorldtaskById(req.TaskId) if err != nil || curTaskConf == nil { - code = pb.ErrorCode_ConfigNoFound + code = pb.ErrorCode_ConfigNoFound log.Error("世界任务配置未找到", log.Field{Key: "uid", Value: uid}, log.Field{Key: "taskId", Value: req.TaskId},