From 1ff9bef70c65395a357fe117e893c7bc79c3d511 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 19 Sep 2023 10:34:55 +0800 Subject: [PATCH] =?UTF-8?q?#35016=20=E4=BB=BB=E5=8A=A1=20=E3=80=90?= =?UTF-8?q?=E6=A2=A6=E5=B7=A5=E5=9C=BA=E7=B3=BB=E7=BB=9F=E3=80=91=20<-?= =?UTF-8?q?=E5=90=8E=E7=AB=AF->=20=E3=80=90=E5=AE=8C=E6=88=90=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E3=80=91=20-=20=E9=A9=AF=E9=BE=99=E5=85=BB=E6=88=90?= =?UTF-8?q?=E7=AD=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 1 + modules/dragon/api_train.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/comm/const.go b/comm/const.go index 220736957..347dea09a 100644 --- a/comm/const.go +++ b/comm/const.go @@ -901,6 +901,7 @@ const ( Rtype231 TaskType = 231 // 每期循环塔达到x层 Rtype232 TaskType = 232 // 种族塔通关x阵营x层 Rtype234 TaskType = 234 // 完成多次捕羊大赛 + Rtype235 TaskType = 235 // 指定X龙的等级达到Y级 ) const ( MailLineEasy int32 = 1 // 简单 diff --git a/modules/dragon/api_train.go b/modules/dragon/api_train.go index 105097c42..8be4b0cd8 100644 --- a/modules/dragon/api_train.go +++ b/modules/dragon/api_train.go @@ -163,5 +163,10 @@ func (this *apiComp) Train(session comm.IUserSession, req *pb.DragonTrainReq) (e Dragons: chanegList, }) session.SendMsg(string(this.module.GetType()), "train", rsp) + if curLv > preLv { // 升级后统计任务 + go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) { + this.module.ModuleBuried.TriggerBuried(session, comm.GetBuriedParam2(comm.Rtype235, dragon.Dragonid, dragon.Lv)) + }) + } return }