mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-14 18:32:01 +08:00
修复分页问题
This commit is contained in:
@@ -30,7 +30,7 @@ func GetList(search string, p, limit int64) ([]map[string]any, int, error) {
|
|||||||
limits = []int64{0, limit}
|
limits = []int64{0, limit}
|
||||||
if p > 1 {
|
if p > 1 {
|
||||||
limits[0] = (p - 1) * limit
|
limits[0] = (p - 1) * limit
|
||||||
limits[1] = p * limit
|
limits[1] = limit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if search != "" {
|
if search != "" {
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ func GetEABList(search string, p, limit int64) ([]map[string]any, int, error) {
|
|||||||
limits = []int64{0, limit}
|
limits = []int64{0, limit}
|
||||||
if p > 1 {
|
if p > 1 {
|
||||||
limits[0] = (p - 1) * limit
|
limits[0] = (p - 1) * limit
|
||||||
limits[1] = p * limit
|
limits[1] = limit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if search != "" {
|
if search != "" {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ func GetList(search string, p, limit int64) ([]map[string]any, int, error) {
|
|||||||
limits = []int64{0, limit}
|
limits = []int64{0, limit}
|
||||||
if p > 1 {
|
if p > 1 {
|
||||||
limits[0] = (p - 1) * limit
|
limits[0] = (p - 1) * limit
|
||||||
limits[1] = p * limit
|
limits[1] = limit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ func GetList(search string, p, limit int64) ([]map[string]any, int, error) {
|
|||||||
limits = []int64{0, limit}
|
limits = []int64{0, limit}
|
||||||
if p > 1 {
|
if p > 1 {
|
||||||
limits[0] = (p - 1) * limit
|
limits[0] = (p - 1) * limit
|
||||||
limits[1] = p * limit
|
limits[1] = limit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ func Restart() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetVersion() (map[string]string, error) {
|
func GetVersion() (map[string]string, error) {
|
||||||
version := "v1.0.4"
|
version := "v1.0.5"
|
||||||
update := "0"
|
update := "0"
|
||||||
newVersionObj, err := http.Get("https://download.allinssl.com/version.json")
|
newVersionObj, err := http.Get("https://download.allinssl.com/version.json")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ func GetList(search string, p, limit int64) ([]map[string]any, int, error) {
|
|||||||
limits = []int64{0, limit}
|
limits = []int64{0, limit}
|
||||||
if p > 1 {
|
if p > 1 {
|
||||||
limits[0] = (p - 1) * limit
|
limits[0] = (p - 1) * limit
|
||||||
limits[1] = p * limit
|
limits[1] = limit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ func GetList(search string, p, limit int64) ([]map[string]any, int, error) {
|
|||||||
limits = []int64{0, limit}
|
limits = []int64{0, limit}
|
||||||
if p > 1 {
|
if p > 1 {
|
||||||
limits[0] = (p - 1) * limit
|
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}
|
limits = []int64{0, limit}
|
||||||
if p > 1 {
|
if p > 1 {
|
||||||
limits[0] = (p - 1) * limit
|
limits[0] = (p - 1) * limit
|
||||||
limits[1] = p * limit
|
limits[1] = limit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if id == "" {
|
if id == "" {
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("无法打开浏览器,请手动访问:", url)
|
fmt.Println("无法打开浏览器,请手动访问:", url)
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("正在打开浏览器,请稍候...")
|
fmt.Println("正在打开浏览器,请稍候...", url)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
mainRun()
|
mainRun()
|
||||||
|
|||||||
Reference in New Issue
Block a user