修复异常代码
This commit is contained in:
parent
b83337f12a
commit
f8a6b936e3
@ -136,6 +136,7 @@ func (this *ModelRank) GetFloorRankList(floor int32) (result []*pb.DBPagodaRecor
|
||||
func (this *ModelRank) GetFloorLastRankData(floor int32) (curData *pb.DBPagodaRecord, len int, err error) {
|
||||
key := fmt.Sprintf("%s-%d-rank", floorRankKey, floor)
|
||||
len, err = this.Redis.Llen(key)
|
||||
curData = &pb.DBPagodaRecord{}
|
||||
if this.Redis.Lindex(key, -1, curData); err != nil {
|
||||
this.modulePagoda.Errorf("err:%v", err)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user