爬塔 先发推送英雄经验变化在推送结果数据
This commit is contained in:
parent
bc1a5a0603
commit
90f40af815
@ -65,7 +65,14 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PagodaChal
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 校验通过
|
// 校验通过
|
||||||
|
// 加经验
|
||||||
|
if req.Report != nil && req.Report.Info != nil && len(req.Report.Info.Redflist) > 0 {
|
||||||
|
for _, v := range req.Report.Info.Redflist[0].Team {
|
||||||
|
if conf.Exp > 0 {
|
||||||
|
this.module.ModuleHero.AddHeroExp(session, v.Oid, conf.Exp)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if !expand.CompletePagoda { // 普通塔
|
if !expand.CompletePagoda { // 普通塔
|
||||||
pagoda.Type = req.PagodaType
|
pagoda.Type = req.PagodaType
|
||||||
mapData["pagodaId"] = conf.LayerNum
|
mapData["pagodaId"] = conf.LayerNum
|
||||||
@ -128,14 +135,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PagodaChal
|
|||||||
code = this.module.ModifySeasonPagodaData(session.GetUserId(), mapData)
|
code = this.module.ModifySeasonPagodaData(session.GetUserId(), mapData)
|
||||||
session.SendMsg(string(this.module.GetType()), PagodaChallengeOverResp, &pb.PagodaChallengeOverResp{Data: pagoda})
|
session.SendMsg(string(this.module.GetType()), PagodaChallengeOverResp, &pb.PagodaChallengeOverResp{Data: pagoda})
|
||||||
}
|
}
|
||||||
// 加经验
|
|
||||||
if req.Report != nil && req.Report.Info != nil && len(req.Report.Info.Redflist) > 0 {
|
|
||||||
for _, v := range req.Report.Info.Redflist[0].Team {
|
|
||||||
if conf.Exp > 0 {
|
|
||||||
this.module.ModuleHero.AddHeroExp(session, v.Oid, conf.Exp)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// 任务相关
|
// 任务相关
|
||||||
if req.PagodaType == comm.PagodaType {
|
if req.PagodaType == comm.PagodaType {
|
||||||
this.module.ModuleRtask.SendToRtask(session, comm.Rtype58, 1)
|
this.module.ModuleRtask.SendToRtask(session, comm.Rtype58, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user