埋点 Rtype226 Rtype222

This commit is contained in:
meixiongfeng 2023-08-17 17:05:09 +08:00
parent f013b29dc9
commit d8cd9cafbc

View File

@ -6,6 +6,7 @@ import (
"go_dreamfactory/modules/battle" "go_dreamfactory/modules/battle"
"go_dreamfactory/pb" "go_dreamfactory/pb"
cfg "go_dreamfactory/sys/configure/structs" cfg "go_dreamfactory/sys/configure/structs"
"go_dreamfactory/utils"
"math" "math"
"strconv" "strconv"
) )
@ -470,7 +471,14 @@ func (this *apiComp) Event(session comm.IUserSession, req *pb.StonehengeEventReq
szTask = append(szTask, comm.GetBuriedParam(comm.Rtype219, stone.StageID)) szTask = append(szTask, comm.GetBuriedParam(comm.Rtype219, stone.StageID))
//击败指定关卡的首领时,背包中指定道具数量≥指定数量 //击败指定关卡的首领时,背包中指定道具数量≥指定数量
//this.module.ModuleItems.CleanItems() if item, err := this.module.ModuleItems.QueryUserPack(session.GetUserId()); err != nil {
for _, v := range item {
if v.Amount > 0 {
szTask = append(szTask, comm.GetBuriedParam(comm.Rtype224, stone.StageID, utils.ToInt32(v.ItemId), int32(v.Amount)))
szTask = append(szTask, comm.GetBuriedParam(comm.Rtype226, stone.StageID, utils.ToInt32(v.ItemId), int32(v.Amount)))
}
}
}
//击败石阵秘境中指定关卡的首领时,每名上阵英雄血量≤比例(千分比) //击败石阵秘境中指定关卡的首领时,每名上阵英雄血量≤比例(千分比)
szTask = append(szTask, comm.GetBuriedParam(comm.Rtype224, totalhp, stone.StageID)) szTask = append(szTask, comm.GetBuriedParam(comm.Rtype224, totalhp, stone.StageID))
} }