From fe7750905322379165cc0fe7dedaa03869a2b628 Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Tue, 23 May 2023 11:15:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=87=E6=B0=B4=E4=BB=BB=E5=8A=A1=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/rtask/module.go | 2 +- modules/task/api_activereceive.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/rtask/module.go b/modules/rtask/module.go index c61617d9e..05e1091b2 100644 --- a/modules/rtask/module.go +++ b/modules/rtask/module.go @@ -187,7 +187,7 @@ func (this *ModuleRtask) getHandle(tt comm.TaskType) (condis []*rtaskCondHandle) 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.Rtype186: + comm.Rtype171, comm.Rtype186: condi := &rtaskCondHandle{ condId: v.Id, find: this.modelRtaskRecord.lessEqualFirstParam, diff --git a/modules/task/api_activereceive.go b/modules/task/api_activereceive.go index a4df5b9eb..4473ea115 100644 --- a/modules/task/api_activereceive.go +++ b/modules/task/api_activereceive.go @@ -7,7 +7,7 @@ import ( cfg "go_dreamfactory/sys/configure/structs" ) -//活跃度领取 +// 活跃度领取 func (this *apiComp) ActiveReceiveCheck(session comm.IUserSession, req *pb.TaskActiveReceiveReq) (code pb.ErrorCode) { if req.Id == 0 { code = pb.ErrorCode_TaskIdEmpty @@ -87,6 +87,7 @@ func (this *apiComp) ActiveReceive(session comm.IUserSession, req *pb.TaskActive log.Field{Key: "code", Value: code}, ) } + go this.moduleTask.ModuleRtask.TriggerTask(uid, comm.GettaskParam(comm.Rtype171, 1)) } resp := &pb.TaskActiveReceiveResp{