diff --git a/app/custom/svc/svc_task_list.go b/app/custom/svc/svc_task_list.go index 8d0d89a..96bafc6 100644 --- a/app/custom/svc/svc_task_list.go +++ b/app/custom/svc/svc_task_list.go @@ -246,8 +246,11 @@ func TaskDetailNotice(c *gin.Context) { if args["type"] != "" { sess.And("type=?", args["type"]) } - size := utils.StrToInt(args["size"]) + size := 10 p := utils.StrToInt(args["p"]) + if p == 0 { + p = 1 + } sess.Limit(size, (p-1)*size).OrderBy("id desc").Find(&data) list := make([]map[string]string, 0) for _, v := range data {