助战英雄埋点

This commit is contained in:
liwei1dao 2022-11-22 17:48:10 +08:00
parent 49f6ef637a
commit e12b37b00d

View File

@ -118,6 +118,12 @@ func (this *Battle) CreatePveBattle(session comm.IUserSession, req *pb.BattlePVE
if req.Format.Friendformat != nil && len(req.Format.Friendformat) != 5 { if req.Format.Friendformat != nil && len(req.Format.Friendformat) != 5 {
code = pb.ErrorCode_ReqParameterError code = pb.ErrorCode_ReqParameterError
} }
for _, v := range req.Format.Friendformat {
if v != "" {
this.ModuleRtask.SendToRtask(session, comm.Rtype108, 1)
break
}
}
if record, code = this.modelBattle.createpve(session, conn, pb.BattleType_pve, req); code != pb.ErrorCode_Success { if record, code = this.modelBattle.createpve(session, conn, pb.BattleType_pve, req); code != pb.ErrorCode_Success {
return return