记录costTime
This commit is contained in:
parent
5cac675495
commit
9f4b865c7c
@ -131,6 +131,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PagodaChal
|
|||||||
Lv: userinfo.Lv,
|
Lv: userinfo.Lv,
|
||||||
Leadpos: leadpos,
|
Leadpos: leadpos,
|
||||||
Line: szLine,
|
Line: szLine,
|
||||||
|
CostTime: req.Report.Costtime,
|
||||||
}
|
}
|
||||||
costTime = newData.CostTime
|
costTime = newData.CostTime
|
||||||
// 数据写到跨服中
|
// 数据写到跨服中
|
||||||
|
@ -54,6 +54,14 @@ func (this *apiComp) RankList(session comm.IUserSession, req *pb.PagodaRankListR
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
uids := this.module.friend.GetFriendList(session.GetUserId())
|
||||||
|
for _, id := range uids {
|
||||||
|
rankData := this.module.modulerank.getPagodaRankListByFloorid(id, 0)
|
||||||
|
if rankData != nil {
|
||||||
|
szRank = append(szRank, rankData)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
session.SendMsg(string(this.module.GetType()), PagodaRankListResp, &pb.PagodaRankListResp{Ranks: szRank})
|
session.SendMsg(string(this.module.GetType()), PagodaRankListResp, &pb.PagodaRankListResp{Ranks: szRank})
|
||||||
|
@ -27,6 +27,7 @@ type Pagoda struct {
|
|||||||
battle comm.IBattle
|
battle comm.IBattle
|
||||||
service base.IRPCXService
|
service base.IRPCXService
|
||||||
mail comm.Imail
|
mail comm.Imail
|
||||||
|
friend comm.IFriend
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewModule() core.IModule {
|
func NewModule() core.IModule {
|
||||||
@ -82,7 +83,10 @@ func (this *Pagoda) Start() (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.mail = module.(comm.Imail)
|
this.mail = module.(comm.Imail)
|
||||||
|
if module, err = this.service.GetModule(comm.ModuleFriend); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.friend = module.(comm.IFriend)
|
||||||
//this.service.RegisterFunctionName(string(comm.Rpc_ModuleSeasonPagodaReward), this.Rpc_ModuleSeasonPagodaReward)
|
//this.service.RegisterFunctionName(string(comm.Rpc_ModuleSeasonPagodaReward), this.Rpc_ModuleSeasonPagodaReward)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user