队长位置记录
This commit is contained in:
parent
09befb427b
commit
5cac675495
@ -42,11 +42,12 @@ func (this *apiComp) Info(session comm.IUserSession, req *pb.HeroInfoReq) (code
|
||||
if err = dbModel.GetListObj(uid, v, hero); err == nil {
|
||||
rsp.Base = append(rsp.Base, hero)
|
||||
} else {
|
||||
this.module.Errorf("err:%v", err)
|
||||
this.module.Errorf("err:%v,heroid:%s,uid:%s", err, v, uid)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
rsp.Uid = uid
|
||||
session.SendMsg(string(this.module.GetType()), HeroSubTypeInfo, rsp)
|
||||
return
|
||||
|
@ -107,6 +107,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PagodaChal
|
||||
|
||||
// 记录爬塔明细数据
|
||||
if req.Report != nil && req.Report.Info != nil && len(req.Report.Info.Redflist) > 0 {
|
||||
leadpos := req.Report.Info.Redflist[0].Leadpos
|
||||
szLine := make([]*pb.LineUp, 0)
|
||||
for _, v := range req.Report.Info.Redflist[0].Team {
|
||||
if v != nil {
|
||||
@ -128,8 +129,8 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PagodaChal
|
||||
Nickname: userinfo.Name,
|
||||
Icon: "",
|
||||
Lv: userinfo.Lv,
|
||||
Leadpos: 0,
|
||||
Line: szLine, //[]*pb.LineUp{},
|
||||
Leadpos: leadpos,
|
||||
Line: szLine,
|
||||
}
|
||||
costTime = newData.CostTime
|
||||
// 数据写到跨服中
|
||||
|
Loading…
Reference in New Issue
Block a user