新增了详情页排名计算1
This commit is contained in:
parent
3ac92da2db
commit
a12f422136
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user