From 1a4d0801a846849c4cf6523f0f2b3f11228bdfa9 Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Tue, 23 May 2023 10:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A6=E9=A6=86=E6=B4=BE=E9=81=A3=E6=82=AC?= =?UTF-8?q?=E8=B5=8F=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/dispatch/api_do.go | 2 ++ modules/rtask/module.go | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/dispatch/api_do.go b/modules/dispatch/api_do.go index 38e2931db..9019abac9 100644 --- a/modules/dispatch/api_do.go +++ b/modules/dispatch/api_do.go @@ -72,6 +72,8 @@ func (a *apiComp) Do(session comm.IUserSession, req *pb.DispatchDoReq) (code pb. return } + go a.module.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype186, 1)) + //扣除门票 a.module.ConsumeRes(session, []*cfg.Gameatn{ticketAtn}, true) diff --git a/modules/rtask/module.go b/modules/rtask/module.go index 023110049..c61617d9e 100644 --- a/modules/rtask/module.go +++ b/modules/rtask/module.go @@ -186,7 +186,8 @@ func (this *ModuleRtask) getHandle(tt comm.TaskType) (condis []*rtaskCondHandle) comm.Rtype62, comm.Rtype64, comm.Rtype69, comm.Rtype72, comm.Rtype88, comm.Rtype104, comm.Rtype96, comm.Rtype105, comm.Rtype128, comm.Rtype130, comm.Rtype131, comm.Rtype141, comm.Rtype142, comm.Rtype143, comm.Rtype144, comm.Rtype145, comm.Rtype146, - comm.Rtype147, comm.Rtype149, comm.Rtype153, comm.Rtype154, comm.Rtype155, comm.Rtype156: + comm.Rtype147, comm.Rtype149, comm.Rtype153, comm.Rtype154, comm.Rtype155, comm.Rtype156, + comm.Rtype186: condi := &rtaskCondHandle{ condId: v.Id, find: this.modelRtaskRecord.lessEqualFirstParam, @@ -314,10 +315,10 @@ func (this *ModuleRtask) processOneTask(session comm.IUserSession, rtaskType com if r.Flag == 0 { //非接取 r.Data = make(map[int32]int32) r.Rtype = conf.Type - }else{ + } else { return } - } + } } if handle.update != nil {