mirror of
https://github.com/allinssl/allinssl.git
synced 2025-12-15 09:55:37 +08:00
修复分页问题
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user