From ddf7f7731502c632c3bd55dd7d25f91797f3b933 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Mon, 22 May 2023 19:02:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=BB=E5=8A=A1=E5=9F=8B?= =?UTF-8?q?=E7=82=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 8 ++++---- modules/practice/api_accept.go | 2 +- modules/practice/api_gymrefresh.go | 1 + modules/practice/api_loot.go | 2 +- modules/practice/api_npcbattklefinish.go | 2 ++ 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/comm/const.go b/comm/const.go index 4b40e31d5..44f675a63 100644 --- a/comm/const.go +++ b/comm/const.go @@ -648,10 +648,10 @@ const ( Rtype179 TaskType = 179 //解锁X阶段装备新图纸X个 Rtype180 TaskType = 180 //在X副本内使用好友助战X次 Rtype181 TaskType = 181 - Rtype182 TaskType = 182 - Rtype183 TaskType = 183 - Rtype184 TaskType = 184 - Rtype185 TaskType = 185 + Rtype182 TaskType = 182 //打赢武馆内踢馆X次(接取任务后开始记录,每赢得一次踢馆战斗的胜利,进度便加一) + Rtype183 TaskType = 183 //去好友武馆踢馆X次(接取任务后开始记录,每次在好友武馆开启一场踢馆,便进度加一) + Rtype184 TaskType = 184 //使用好友武馆木桩X次(接取任务后,每次使用好友的木桩训练英雄一次,进度便加一) + Rtype185 TaskType = 185 //完成X次每日1健(接取任务后,每完成1次每日1健,便进度加一) Rtype186 TaskType = 186 ) diff --git a/modules/practice/api_accept.go b/modules/practice/api_accept.go index f095e9c8c..076077065 100644 --- a/modules/practice/api_accept.go +++ b/modules/practice/api_accept.go @@ -101,6 +101,6 @@ func (this *apiComp) Accept(session comm.IUserSession, req *pb.PracticeAcceptReq this.module.SendMsgToUser(string(this.module.GetType()), "qiecuonotify", &pb.PracticeQiecuonotifyPush{Uid: session.GetUserId(), NotifyType: 2}, req.Uid) - + go this.module.ModuleRtask.TriggerTask(req.Uid, comm.GettaskParam(comm.Rtype183, 1)) return } diff --git a/modules/practice/api_gymrefresh.go b/modules/practice/api_gymrefresh.go index 9d7291640..de43dfffc 100644 --- a/modules/practice/api_gymrefresh.go +++ b/modules/practice/api_gymrefresh.go @@ -67,6 +67,7 @@ func (this *apiComp) GymRefresh(session comm.IUserSession, req *pb.PracticeGymRe "gymrefresh": room.Gymrefresh, "lastrefresh": room.Lastrefresh, }) + go this.module.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype185, 1)) session.SendMsg(string(this.module.GetType()), "gymrefresh", &pb.PracticeGymRefreshResp{Lastaction: room.Gymaction, Refreshnum: room.Gymrefresh}) return } diff --git a/modules/practice/api_loot.go b/modules/practice/api_loot.go index 6d5f9c30f..b06d023f8 100644 --- a/modules/practice/api_loot.go +++ b/modules/practice/api_loot.go @@ -96,7 +96,7 @@ func (this *apiComp) Loot(session comm.IUserSession, req *pb.PracticeLootReq) (c } else { this.module.PutUserSession(_session) } - + go this.module.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype184, 1)) session.SendMsg(string(this.module.GetType()), "loot", &pb.PracticeLootResp{Friend: req.Friend, Pillar: froom.Pillarf}) return } diff --git a/modules/practice/api_npcbattklefinish.go b/modules/practice/api_npcbattklefinish.go index a33a4cebb..de422cc35 100644 --- a/modules/practice/api_npcbattklefinish.go +++ b/modules/practice/api_npcbattklefinish.go @@ -47,6 +47,8 @@ func (this *apiComp) NPCBattkleFinish(session comm.IUserSession, req *pb.Practic "npcstate": room.Npcstate, "refresh": room.Refresh, }) + + go this.module.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype182, 1)) } else { room.Npcstate = 1 room.Battlenum++