新增数据埋点
This commit is contained in:
parent
2de025cf03
commit
1b9e2c4f1e
@ -93,7 +93,16 @@ func (this *Hero) Start() (err error) {
|
||||
func (this *Hero) createRepeatHero(session comm.IUserSession, heroCfgId string, num int32) (hero *pb.DBHero, bFirst bool, atno []*pb.UserAtno, errdata *pb.ErrorData) {
|
||||
var (
|
||||
err error
|
||||
szTask []*pb.BuriedParam
|
||||
cfg *cfg.GameHeroData
|
||||
)
|
||||
if cfg, err = this.configure.GetHeroConfig(heroCfgId); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
}
|
||||
hero, bFirst, atno, err = this.modelHero.createHero(session, heroCfgId, num)
|
||||
if err == nil && bFirst {
|
||||
//go func() { // 携程处理 图鉴数据
|
||||
@ -103,17 +112,7 @@ func (this *Hero) createRepeatHero(session comm.IUserSession, heroCfgId string,
|
||||
this.moduleFetter.AddHeroFetterData(session.GetUserId(), heroCfgId)
|
||||
}
|
||||
//}()
|
||||
|
||||
// 查品质
|
||||
cfg, _ := this.configure.GetHeroConfig(heroCfgId)
|
||||
if cfg != nil {
|
||||
var szTask []*pb.BuriedParam
|
||||
szTask = append(szTask, comm.GetBuriedParam(comm.Rtype1, 1, utils.ToInt32(heroCfgId)))
|
||||
szTask = append(szTask, comm.GetBuriedParam2(comm.Rtype30, heroCfgId, cfg.Color))
|
||||
szTask = append(szTask, comm.GetBuriedParam(comm.Rtype31, 1, cfg.Color))
|
||||
go this.ModuleBuried.TriggerBuried(session.Clone(), szTask...)
|
||||
}
|
||||
|
||||
szTask = append(szTask, comm.GetBuriedParam(comm.Rtype228, cfg.Star))
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
@ -123,7 +122,10 @@ func (this *Hero) createRepeatHero(session comm.IUserSession, heroCfgId string,
|
||||
Message: err.Error(),
|
||||
}
|
||||
}
|
||||
|
||||
szTask = append(szTask, comm.GetBuriedParam(comm.Rtype1, 1, utils.ToInt32(heroCfgId)))
|
||||
szTask = append(szTask, comm.GetBuriedParam2(comm.Rtype30, heroCfgId, cfg.Color))
|
||||
szTask = append(szTask, comm.GetBuriedParam(comm.Rtype31, num, cfg.Color))
|
||||
go this.ModuleBuried.TriggerBuried(session.Clone(), szTask...)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -169,6 +169,12 @@ func (this *apiComp) ChallengeRaceOver(session comm.IUserSession, req *pb.Pagoda
|
||||
this.module.SetRacePagodaRankList("race"+strconv.Itoa(int(conf.Restriction)), race.Race[conf.Restriction].Curfloor, session.GetUserId(), newData.Id)
|
||||
}
|
||||
// 任务相关
|
||||
//go this.module.ModuleBuried.TriggerBuried(session.Clone(), comm.GetBuriedParam(comm.Rtype168, pagoda.Data[conf.Tab], conf.Tab))
|
||||
var sz []*pb.BuriedParam
|
||||
sz = append(sz, comm.GetBuriedParam(comm.Rtype232, conf.Restriction, conf.Floors))
|
||||
|
||||
if conf.Restriction >= 10 {
|
||||
sz = append(sz, comm.GetBuriedParam(comm.Rtype231, conf.Floors))
|
||||
}
|
||||
go this.module.ModuleBuried.TriggerBuried(session.Clone(), sz...)
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user