Commit 56b527c7 authored by hujiebin's avatar hujiebin

fix

parent a5ad0596
...@@ -74,6 +74,6 @@ func CpRank(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -74,6 +74,6 @@ func CpRank(c *gin.Context) (*mycontext.MyContext, error) {
Ranking: i + 1 + offset, Ranking: i + 1 + offset,
}) })
} }
resp.ResponsePageBaseOk(c, response, pageReq.PageIndex+1, len(ranks) < pageReq.PageSize) resp.ResponsePageBaseOk(c, response, pageReq.PageIndex+1, len(ranks) >= pageReq.PageSize)
return myCtx, nil 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