From b6162658154481e28bf301ea1c93a5a24788c786 Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Tue, 22 Nov 2022 19:11:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=B0=E5=A2=9E=E7=9A=84?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/rtask/module.go | 4 ++-- modules/rtask/updateHandle.go | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/rtask/module.go b/modules/rtask/module.go index 01bfba16c..05d9ec5e0 100644 --- a/modules/rtask/module.go +++ b/modules/rtask/module.go @@ -208,7 +208,7 @@ func (this *ModuleRtask) initRtaskVerifyHandle() { comm.Rtype42, comm.Rtype43, comm.Rtype45, comm.Rtype46, comm.Rtype47, comm.Rtype48, comm.Rtype49, comm.Rtype52, comm.Rtype55, comm.Rtype56, - comm.Rtype65, comm.Rtype66, comm.Rtype67, comm.Rtype68: + comm.Rtype65, comm.Rtype66, comm.Rtype67, comm.Rtype68, comm.Rtype140: this.registerVerifyHandle(v.Id, &rtaskCondi{ cfg: typeCfg, find: this.modelRtaskRecord.lessThanParams, @@ -260,7 +260,7 @@ func (this *ModuleRtask) SendToRtask(session comm.IUserSession, rtaskType comm.T } if condiId, err = v.find(v.cfg, params...); condiId == 0 { if err != nil { - this.Warn(errors.WithMessage(err, uid).Error(),log.Fields{}) + this.Warn(errors.WithMessage(err, uid).Error(), log.Fields{}) } } else { condis = append(condis, v) diff --git a/modules/rtask/updateHandle.go b/modules/rtask/updateHandle.go index 0ffe5466e..25a69679c 100644 --- a/modules/rtask/updateHandle.go +++ b/modules/rtask/updateHandle.go @@ -3,6 +3,7 @@ package rtask import ( "go_dreamfactory/comm" + "go_dreamfactory/lego/sys/log" "go_dreamfactory/modules/task" "go_dreamfactory/pb" "go_dreamfactory/sys/configure" @@ -56,7 +57,7 @@ func (this *ModelRtaskRecord) overrideUpdate(uid string, cfg *cfg.GameRdtaskCond return } } - + log.Debug("覆盖数值更新", log.Fields{"uid": uid, "condiId": cfg.Id, "params": vals, "updated": record.Vals[cfg.Id]}) this.listenTask(uid, cfg.Id) return } @@ -97,6 +98,7 @@ func (this *ModelRtaskRecord) addUpdate(uid string, cfg *cfg.GameRdtaskCondiData } err = this.Change(uid, update) } + log.Debug("累计次数更新", log.Fields{"uid": uid, "condiId": cfg.Id, "params": vals, "updated": record.Vals[cfg.Id]}) this.listenTask(uid, cfg.Id) return