队长位置记录
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 {
|
if err = dbModel.GetListObj(uid, v, hero); err == nil {
|
||||||
rsp.Base = append(rsp.Base, hero)
|
rsp.Base = append(rsp.Base, hero)
|
||||||
} else {
|
} else {
|
||||||
this.module.Errorf("err:%v", err)
|
this.module.Errorf("err:%v,heroid:%s,uid:%s", err, v, uid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rsp.Uid = uid
|
rsp.Uid = uid
|
||||||
session.SendMsg(string(this.module.GetType()), HeroSubTypeInfo, rsp)
|
session.SendMsg(string(this.module.GetType()), HeroSubTypeInfo, rsp)
|
||||||
return
|
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 {
|
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)
|
szLine := make([]*pb.LineUp, 0)
|
||||||
for _, v := range req.Report.Info.Redflist[0].Team {
|
for _, v := range req.Report.Info.Redflist[0].Team {
|
||||||
if v != nil {
|
if v != nil {
|
||||||
@ -128,8 +129,8 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PagodaChal
|
|||||||
Nickname: userinfo.Name,
|
Nickname: userinfo.Name,
|
||||||
Icon: "",
|
Icon: "",
|
||||||
Lv: userinfo.Lv,
|
Lv: userinfo.Lv,
|
||||||
Leadpos: 0,
|
Leadpos: leadpos,
|
||||||
Line: szLine, //[]*pb.LineUp{},
|
Line: szLine,
|
||||||
}
|
}
|
||||||
costTime = newData.CostTime
|
costTime = newData.CostTime
|
||||||
// 数据写到跨服中
|
// 数据写到跨服中
|
||||||
|
Loading…
Reference in New Issue
Block a user