埋点数据
This commit is contained in:
parent
f22889a37c
commit
59d5b29420
@ -127,12 +127,12 @@ func (this *apiComp) Awaken(session comm.IUserSession, req *pb.HeroAwakenReq) (e
|
|||||||
bManAwaken = true
|
bManAwaken = true
|
||||||
}
|
}
|
||||||
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype121, 1, cfg.Race))
|
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype121, 1, cfg.Race))
|
||||||
tasks = append(tasks, comm.GetBuriedParam2(comm.Rtype36, _hero.HeroID, cfg.Color, cfg.Job, cfg.Race, _hero.JuexingLv))
|
tasks = append(tasks, comm.GetBuriedParam2(comm.Rtype37, _hero.HeroID, cfg.Color))
|
||||||
_, err = this.module.configure.GetHeroAwakenConfig(_hero.HeroID, _hero.JuexingLv+1)
|
_, err = this.module.configure.GetHeroAwakenConfig(_hero.HeroID, _hero.JuexingLv+1)
|
||||||
if err != nil { // 达到满级觉醒
|
if err != nil { // 达到满级觉醒
|
||||||
if _hero.Lv == this.module.configure.GetHeroMaxLv(_hero.Star) && bManAwaken {
|
if _hero.Lv == this.module.configure.GetHeroMaxLv(_hero.Star) && bManAwaken {
|
||||||
tasks = append(tasks, comm.GetBuriedParam2(comm.Rtype38, _hero.HeroID))
|
tasks = append(tasks, comm.GetBuriedParam2(comm.Rtype38, _hero.HeroID))
|
||||||
tasks = append(tasks, comm.GetBuriedParam2(comm.Rtype37, _hero.HeroID, cfg.Color))
|
tasks = append(tasks, comm.GetBuriedParam2(comm.Rtype36, _hero.HeroID, cfg.Color, cfg.Job, cfg.Race, _hero.JuexingLv))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ func (this *apiComp) Award(session comm.IUserSession, req *pb.MonkeyAwardReq) (e
|
|||||||
conf []*cfg.GameMonkeyRewardData
|
conf []*cfg.GameMonkeyRewardData
|
||||||
res []*cfg.Gameatn
|
res []*cfg.Gameatn
|
||||||
atno []*pb.UserAtno
|
atno []*pb.UserAtno
|
||||||
totalstar int32 //
|
//totalstar int32 //
|
||||||
)
|
)
|
||||||
if errdata = this.AwardCheck(session, req); errdata != nil {
|
if errdata = this.AwardCheck(session, req); errdata != nil {
|
||||||
return
|
return
|
||||||
@ -45,16 +45,16 @@ func (this *apiComp) Award(session comm.IUserSession, req *pb.MonkeyAwardReq) (e
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for _, v := range info.Data[req.ChapterId].Award {
|
// for _, v := range info.Data[req.ChapterId].Award {
|
||||||
totalstar += v
|
// totalstar += v
|
||||||
}
|
// }
|
||||||
if totalstar < req.Starnum { // 星级不够 不能领奖
|
// if totalstar < req.Starnum { // 星级不够 不能领奖
|
||||||
errdata = &pb.ErrorData{
|
// errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_UserNoReward,
|
// Code: pb.ErrorCode_UserNoReward,
|
||||||
Title: pb.ErrorCode_UserNoReward.ToString(),
|
// Title: pb.ErrorCode_UserNoReward.ToString(),
|
||||||
}
|
// }
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
if conf, err = this.module.configure.getGameMonkeyRewardData(req.ChapterId); err == nil {
|
if conf, err = this.module.configure.getGameMonkeyRewardData(req.ChapterId); err == nil {
|
||||||
for _, v := range conf {
|
for _, v := range conf {
|
||||||
if v.Starnum > info.Reward[req.ChapterId] && v.Starnum <= req.Starnum {
|
if v.Starnum > info.Reward[req.ChapterId] && v.Starnum <= req.Starnum {
|
||||||
|
@ -55,7 +55,7 @@ func (this *apiComp) UpdateStar(session comm.IUserSession, req *pb.MonkeyUpdateS
|
|||||||
|
|
||||||
update["data"] = info.Data
|
update["data"] = info.Data
|
||||||
} else {
|
} else {
|
||||||
if info.Data[conf.Chapter].Award[req.Stage] < req.Star {
|
if info.Data[conf.Chapter].Award[req.Stage] != req.Star {
|
||||||
info.Data[conf.Chapter].Award[req.Stage] = req.Star
|
info.Data[conf.Chapter].Award[req.Stage] = req.Star
|
||||||
update["data"] = info.Data
|
update["data"] = info.Data
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user