From 3d2cc139d6c9f3e88b5ce0e3576be868ac920083 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 30 May 2024 16:01:19 +0800 Subject: [PATCH] by Robin at 20240530 --- app/mix/service/streamer_recomm_service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/mix/service/streamer_recomm_service.go b/app/mix/service/streamer_recomm_service.go index 5b4024cc..5c00804e 100644 --- a/app/mix/service/streamer_recomm_service.go +++ b/app/mix/service/streamer_recomm_service.go @@ -183,7 +183,8 @@ func (s *StreamerRecommService) save() { // 推送 func (s *StreamerRecommService) push() error { list := make([]int64, 0) - for _, v := range s.scorelist { + for i := len(s.scorelist) - 1; i >= 0; i-- { + v := s.scorelist[i] logger.Info("%v得分:%v", v.Mid, v.Score) list = append(list, v.Mid) }