心魔塔查询玩家信息接口

This commit is contained in:
meixiongfeng 2022-10-12 16:41:06 +08:00
parent 2e264b285a
commit c53a6c294e
2 changed files with 14 additions and 0 deletions

View File

@ -168,6 +168,7 @@ type (
// 修改爬塔 // 修改爬塔
IPagoda interface { IPagoda interface {
ModifyPagodaFloor(session IUserSession, level int32) (code pb.ErrorCode) ModifyPagodaFloor(session IUserSession, level int32) (code pb.ErrorCode)
CheckUserBasePagodaInfo(uid string) (data *pb.DBPagodaRecord) // 查询玩家最佳通关记录
} }
IHeroFetter interface { IHeroFetter interface {
@ -181,4 +182,7 @@ type (
//触发月之秘境 //触发月之秘境
Trigger(session IUserSession, source *pb.BattleReport) Trigger(session IUserSession, source *pb.BattleReport)
} }
// IViking interface {
// CheckUserBaseVikingInfo(uid string) (data *pb.DBViking) // 查询玩家最佳通关记录
// }
) )

View File

@ -82,3 +82,13 @@ func (this *Pagoda) ModifyPagodaFloor(session comm.IUserSession, level int32) (c
} }
return 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
}