Exit bug、web display

This commit is contained in:
刘河
2019-04-20 10:45:04 +08:00
parent 89f1e72c50
commit 45521d5680
4 changed files with 7 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ func (s *DbUtils) GetClientList(start, length int, search, sort, order string, c
}
cnt++
if start--; start < 0 {
if length--; length > 0 {
if length--; length >= 0 {
list = append(list, v)
}
}
@@ -187,7 +187,7 @@ func (s *DbUtils) GetHost(start, length int, id int, search string) ([]*Host, in
if id == 0 || v.Client.Id == id {
cnt++
if start--; start < 0 {
if length--; length > 0 {
if length--; length >= 0 {
list = append(list, v)
}
}

View File

@@ -1,6 +1,6 @@
package version
const VERSION = "0.22.4"
const VERSION = "0.22.5"
// Compulsory minimum version, Minimum downward compatibility to this version
func GetVersion() string {