心魔塔查询玩家信息接口
This commit is contained in:
parent
2e264b285a
commit
c53a6c294e
@ -168,6 +168,7 @@ type (
|
||||
// 修改爬塔
|
||||
IPagoda interface {
|
||||
ModifyPagodaFloor(session IUserSession, level int32) (code pb.ErrorCode)
|
||||
CheckUserBasePagodaInfo(uid string) (data *pb.DBPagodaRecord) // 查询玩家最佳通关记录
|
||||
}
|
||||
|
||||
IHeroFetter interface {
|
||||
@ -181,4 +182,7 @@ type (
|
||||
//触发月之秘境
|
||||
Trigger(session IUserSession, source *pb.BattleReport)
|
||||
}
|
||||
// IViking interface {
|
||||
// CheckUserBaseVikingInfo(uid string) (data *pb.DBViking) // 查询玩家最佳通关记录
|
||||
// }
|
||||
)
|
||||
|
@ -82,3 +82,13 @@ func (this *Pagoda) ModifyPagodaFloor(session comm.IUserSession, level int32) (c
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// 查询玩家
|
||||
func (this *Pagoda) CheckUserBasePagodaInfo(uid string) (data *pb.DBPagodaRecord) {
|
||||
|
||||
list, _ := this.modelPagoda.getPagodaList(uid)
|
||||
if list != nil { // redis没有数据
|
||||
data = this.modelPagoda.getPagodaRankList(uid, list.PagodaId)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user