This commit is contained in:
meixiongfeng 2023-10-26 12:34:37 +08:00
commit bcc6e797d7
2 changed files with 2 additions and 7 deletions

View File

@ -148,11 +148,5 @@
"open": true,
"routrules": "~/worker",
"describe": "猜颜色"
},
{
"msgid": "gameinvite",
"open": true,
"routrules": "~/worker",
"describe": "邀请系统"
}
]

View File

@ -5,6 +5,7 @@ import (
"go_dreamfactory/pb"
"go_dreamfactory/sys/configure"
cfg "go_dreamfactory/sys/configure/structs"
"go_dreamfactory/utils"
)
//参数校验
@ -167,7 +168,7 @@ func (this *apiComp) Train(session comm.IUserSession, req *pb.DragonTrainReq) (e
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))
this.module.ModuleBuried.TriggerBuried(session, comm.GetBuriedParam(comm.Rtype235, dragon.Lv, utils.ToInt32(dragon.Dragonid)))
})
}
return