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 {