新增了详情页排名计算1

This commit is contained in:
wucongxing8150 2024-09-19 12:04:38 +08:00
parent 3ac92da2db
commit a12f422136

View File

@ -123,7 +123,7 @@ func (r *Video) GetVideo(c *gin.Context) {
if systemConfig.IsDisplayRank == 1 {
// 获取大于某一投票数的文章
maps := make(map[string]interface{})
maps["article_status"] = 1
maps["video_status"] = 1
videos, err := videoDao.GetVideoListGtVoteNum(maps, video.VoteNum)
if err == nil {
rank := len(videos) + 1