年兽排行榜
This commit is contained in:
parent
5adc0638f8
commit
280ef5d42e
|
@ -967,10 +967,6 @@ func (r *RankMatchMgr) NianRankAward() {
|
|||
if rankAward == nil {
|
||||
continue
|
||||
}
|
||||
log := &model.NianPlayerRankLog{}
|
||||
log.Ts = time.Now().Unix()
|
||||
log.Platform = platform
|
||||
log.TypeId = info.TypeId
|
||||
var players []*model.PlayerBaseInfo
|
||||
list, err := model.FindLuckNianRankList(&model.FindNianListArgs{
|
||||
Platform: platform,
|
||||
|
@ -995,6 +991,10 @@ func (r *RankMatchMgr) NianRankAward() {
|
|||
return
|
||||
}
|
||||
rankId := int32(1)
|
||||
log := &model.NianPlayerRankLog{}
|
||||
log.Ts = time.Now().Unix()
|
||||
log.Platform = platform
|
||||
log.TypeId = info.TypeId
|
||||
for k, player := range players {
|
||||
localRankId := rankId
|
||||
if player == nil {
|
||||
|
@ -1062,10 +1062,6 @@ func (r *RankMatchMgr) NianRankAward() {
|
|||
continue
|
||||
}
|
||||
var players []*model.PlayerBaseInfo
|
||||
log := &model.NianPlayerRankLog{}
|
||||
log.Ts = time.Now().Unix()
|
||||
log.Platform = platform
|
||||
log.TypeId = info.TypeId
|
||||
list, err := model.FindDamageNianRankList(&model.FindNianListArgs{
|
||||
Platform: platform,
|
||||
})
|
||||
|
@ -1088,6 +1084,10 @@ func (r *RankMatchMgr) NianRankAward() {
|
|||
logger.Logger.Errorf("RankMatchMgr OnDayTimer FindLuckNianRankList err:%v", err)
|
||||
return
|
||||
}
|
||||
log := &model.NianPlayerRankLog{}
|
||||
log.Ts = time.Now().Unix()
|
||||
log.Platform = platform
|
||||
log.TypeId = info.TypeId
|
||||
rankId := int32(1)
|
||||
for k, player := range players {
|
||||
localRankId := rankId // 将 rankId 复制到局部变量
|
||||
|
|
Loading…
Reference in New Issue