上传好友助战埋点

This commit is contained in:
liwei1dao 2023-05-24 19:06:52 +08:00
parent 51ffe78927
commit 0220678a3d

View File

@ -147,6 +147,9 @@ func (this *Battle) CreatePveBattle(session comm.IUserSession, req *pb.BattlePVE
if record, code = this.modelBattle.createpve(session, conn, pb.BattleType_pve, req); code != pb.ErrorCode_Success {
return
}
if req.Format.Friendformat != nil {
go this.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype12, 1))
}
return
}
@ -257,6 +260,9 @@ func (this *Battle) CreateLPVEBattle(session comm.IUserSession, req *pb.BattleLP
if record, code = this.modelBattle.createlpve(session, conn, pb.BattleType_lpev, req); code != pb.ErrorCode_Success {
return
}
if req.Format.Friendformat != nil {
go this.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype12, 1))
}
return
}