feat: 后台服务器备注 close #72

This commit is contained in:
naiba
2021-01-20 19:24:59 +08:00
parent 29bc810a8f
commit ec17948fe4
12 changed files with 83 additions and 66 deletions

View File

@@ -34,7 +34,7 @@ var CronLock sync.RWMutex
var Crons map[uint64]*model.Cron
var Cron *cron.Cron
var Version = "v0.3.1"
var Version = "v0.3.2"
func ReSortServer() {
ServerLock.RLock()
@@ -48,6 +48,9 @@ func ReSortServer() {
}
sort.SliceStable(SortedServerList, func(i, j int) bool {
if SortedServerList[i].DisplayIndex == SortedServerList[j].DisplayIndex {
return SortedServerList[i].ID < SortedServerList[i].ID
}
return SortedServerList[i].DisplayIndex > SortedServerList[j].DisplayIndex
})
}