Merge pull request 'by Robin at 20240530' (#523) from feat-IRONFANS-58-Robin into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/523
This commit is contained in:
chenhao 2024-05-30 16:09:48 +08:00
commit 3deeb6be7d
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}