From 1bb175220976dad6c6db49f880d7071f1967430d Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 25 May 2023 20:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=BB=E5=8A=A1=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/rtask/module.go | 48 ++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/modules/rtask/module.go b/modules/rtask/module.go index b7d28f309..47e5852ce 100644 --- a/modules/rtask/module.go +++ b/modules/rtask/module.go @@ -328,30 +328,30 @@ func (this *ModuleRtask) processOneTask(session comm.IUserSession, rtaskType com } } } - userModule, err := this.service.GetModule(comm.ModuleUser) - if err == nil { - // 公会 - if user, ok := userModule.(comm.IUser); ok { - ex, err := user.GetUserExpand(uid) - if err == nil && ex.SociatyId != "" { - sociatyModule, err := this.service.GetModule(comm.ModuleSociaty) - if err != nil { - return - } - if sociaty, ok := sociatyModule.(comm.ISociaty); ok { - if err2 := sociaty.TaskcondNotify(uid, ex.SociatyId, condId); err2 != nil { - log.Error("公会任务条件达成通知", - log.Field{Key: "uid", Value: uid}, - log.Field{Key: "sociatyId", Value: ex.SociatyId}, - log.Field{Key: "condId", Value: condId}, - log.Field{Key: "err", Value: err2.Error()}, - ) - } - this.processOneTask(session, comm.Rtype156, 1) - } - } - } - } + // userModule, err := this.service.GetModule(comm.ModuleUser) + // if err == nil { + // // 公会 + // if user, ok := userModule.(comm.IUser); ok { + // ex, err := user.GetUserExpand(uid) + // if err == nil && ex.SociatyId != "" { + // sociatyModule, err := this.service.GetModule(comm.ModuleSociaty) + // if err != nil { + // return + // } + // if sociaty, ok := sociatyModule.(comm.ISociaty); ok { + // if err2 := sociaty.TaskcondNotify(uid, ex.SociatyId, condId); err2 != nil { + // log.Error("公会任务条件达成通知", + // log.Field{Key: "uid", Value: uid}, + // log.Field{Key: "sociatyId", Value: ex.SociatyId}, + // log.Field{Key: "condId", Value: condId}, + // log.Field{Key: "err", Value: err2.Error()}, + // ) + // } + // this.processOneTask(session, comm.Rtype156, 1) + // } + // } + // } + // } } } return