♻️ v4: 去掉添加 Agent ID 要求 需要更新面板 close #83

This commit is contained in:
naiba committed 2021-01-30 17:10:51 +08:00
1 parent 42b65ff79e
commit 3c76bb4651
13 files changed
+52 -76

No files matched your search

+2
View File
@@ -27,6 +27,7 @@ func init() {
dao.Cron = cron.New(cron.WithLocation(shanghai))
dao.Crons = make(map[uint64]*model.Cron)
dao.ServerList = make(map[uint64]*model.Server)
dao.SecretToID = make(map[string]uint64)
err = dao.Conf.Read("data/config.yaml")
if err != nil {
@@ -68,6 +69,7 @@ func loadServers() {
innerS.Host = &model.Host{}
innerS.State = &model.HostState{}
dao.ServerList[innerS.ID] = &innerS
dao.SecretToID[innerS.Secret] = innerS.ID
}
dao.ReSortServer()
}