Commit 7370dd22 by hcy001

更新分页

parent 172abb9f
Showing with 2 additions and 1 deletions
......@@ -169,6 +169,7 @@ func (qs *OptimumService) GetOptimumAttr(ctx *gin.Context) (results model.LyResp
返回供应商详情
*/
func (qs *OptimumService) GetOptimumAttrInfo(ctx *gin.Context) (results model.LyResponse) {
//修复分页数据
if gconv.Int64(ctx.Request.FormValue("page")) * gconv.Int64(ctx.Request.FormValue("page_size")) > 10000 {
results.ErrorCode = 0;
......@@ -327,7 +328,7 @@ func PageClear(ctx *gin.Context,total int64) map[string]interface{}{
}
}else{
pageNum := 0
for i:=1;i<=int(totalPage);i++{
for i:=1;i<=checkPage;i++{
if pageNum == 10 {
break
}
......
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 sign in to comment