From b56cc67d63f7ca92c242d08f3905664809611b12 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 5 Jan 2023 18:22:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E4=B8=96=E7=95=8C=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=9F=8B=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 9 +++++---- modules/academy/api_receive.go | 1 + modules/martialhall/api_practice.go | 1 + modules/martialhall/api_unlock.go | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/comm/const.go b/comm/const.go index 6c7678e58..26a42aece 100644 --- a/comm/const.go +++ b/comm/const.go @@ -550,10 +550,11 @@ const ( Rtype149 TaskType = 149 //熊猫武馆培养英雄n次 Rtype150 TaskType = 150 //美食馆下单n个美食 Rtype151 TaskType = 151 //联盟学院新通关n次 - Rtype152 TaskType = 152 //商队交易x次 - Rtype153 TaskType = 153 //狩猎副本掉落x个觉醒材料 - Rtype154 TaskType = 154 //调整助战英雄n次 - Rtype155 TaskType = 155 //完成工会任务n次 + Rtype152 TaskType = 152 //熊猫武馆解锁柱子 + Rtype153 TaskType = 153 //商队交易x次 + Rtype154 TaskType = 154 //狩猎副本掉落x个觉醒材料 + Rtype155 TaskType = 155 //调整助战英雄n次 + Rtype156 TaskType = 156 //完成工会任务n次 ) const ( diff --git a/modules/academy/api_receive.go b/modules/academy/api_receive.go index c58975e21..e26844f9f 100644 --- a/modules/academy/api_receive.go +++ b/modules/academy/api_receive.go @@ -52,6 +52,7 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.AcademyReceiveRe } this.module.DispenseRes(session, level.Award, true) + this.module.ModuleRtask.SendToRtask(session, comm.Rtype151, 1) } session.SendMsg(string(this.module.GetType()), "receive", &pb.AcademyReceiveResp{Issucc: true}) return diff --git a/modules/martialhall/api_practice.go b/modules/martialhall/api_practice.go index a96643453..a894d3bc3 100644 --- a/modules/martialhall/api_practice.go +++ b/modules/martialhall/api_practice.go @@ -94,6 +94,7 @@ func (this *apiComp) Practice(session comm.IUserSession, req *pb.MartialhallPrac this.module.modelMartialhall.Change(session.GetUserId(), map[string]interface{}{ filed: pillar, }) + this.module.ModuleRtask.SendToRtask(session, comm.Rtype149, 1) session.SendMsg(string(this.module.GetType()), "practice", &pb.MartialhallPracticeResp{Issucc: true, Info: mart}) return } diff --git a/modules/martialhall/api_unlock.go b/modules/martialhall/api_unlock.go index 91a48e52b..7d9cd7662 100644 --- a/modules/martialhall/api_unlock.go +++ b/modules/martialhall/api_unlock.go @@ -84,6 +84,7 @@ func (this *apiComp) UnLock(session comm.IUserSession, req *pb.MartialhallUnLock this.module.modelMartialhall.Change(session.GetUserId(), map[string]interface{}{ filed: pillar, }) + this.module.ModuleRtask.SendToRtask(session, comm.Rtype152, 1) session.SendMsg(string(this.module.GetType()), "unlock", &pb.MartialhallUnLockResp{Issucc: true, Info: mart}) return }