修复分页问题

This commit is contained in:
zhangchenhao
2025-06-07 16:46:06 +08:00
parent 563f3ec276
commit 87ae1c9570
9 changed files with 9 additions and 9 deletions

View File

@@ -30,7 +30,7 @@ func GetList(search string, p, limit int64) ([]map[string]any, int, error) {
limits = []int64{0, limit}
if p > 1 {
limits[0] = (p - 1) * limit
limits[1] = p * limit
limits[1] = limit
}
}
if search != "" {

View File

@@ -46,7 +46,7 @@ func GetEABList(search string, p, limit int64) ([]map[string]any, int, error) {
limits = []int64{0, limit}
if p > 1 {
limits[0] = (p - 1) * limit
limits[1] = p * limit
limits[1] = limit
}
}
if search != "" {

View File

@@ -31,7 +31,7 @@ func GetList(search string, p, limit int64) ([]map[string]any, int, error) {
limits = []int64{0, limit}
if p > 1 {
limits[0] = (p - 1) * limit
limits[1] = p * limit
limits[1] = limit
}
}

View File

@@ -34,7 +34,7 @@ func GetList(search string, p, limit int64) ([]map[string]any, int, error) {
limits = []int64{0, limit}
if p > 1 {
limits[0] = (p - 1) * limit
limits[1] = p * limit
limits[1] = limit
}
}

View File

@@ -188,7 +188,7 @@ func Restart() {
}
func GetVersion() (map[string]string, error) {
version := "v1.0.4"
version := "v1.0.5"
update := "0"
newVersionObj, err := http.Get("https://download.allinssl.com/version.json")
if err != nil {

View File

@@ -47,7 +47,7 @@ func GetList(search string, p, limit int64) ([]map[string]any, int, error) {
limits = []int64{0, limit}
if p > 1 {
limits[0] = (p - 1) * limit
limits[1] = p * limit
limits[1] = limit
}
}

View File

@@ -31,7 +31,7 @@ func GetList(search string, p, limit int64) ([]map[string]any, int, error) {
limits = []int64{0, limit}
if p > 1 {
limits[0] = (p - 1) * limit
limits[1] = p * limit
limits[1] = limit
}
}

View File

@@ -34,7 +34,7 @@ func GetListWH(id string, p, limit int64) ([]map[string]any, int, error) {
limits = []int64{0, limit}
if p > 1 {
limits[0] = (p - 1) * limit
limits[1] = p * limit
limits[1] = limit
}
}
if id == "" {