Commit a97ec9c7 authored by hujiebin's avatar hujiebin

99+

parent 0b98ffbb
......@@ -222,6 +222,13 @@ func CpMy(c *gin.Context) (*mycontext.MyContext, error) {
if relation.UserId2 > 0 {
response.User2 = userBases[relation.UserId2]
response.Ranking = "99+"
ranks := cp_m.PageCpDayRank(model, beginDate, endDate, 0, 30)
for i, rank := range ranks {
if relation.ID == rank.CpId {
response.Ranking = fmt.Sprintf("%d", i+1)
break
}
}
}
resp.ResponseOk(c, response)
return myCtx, nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment