nps some config hot reload

This commit is contained in:
刘河 committed 2019-03-26 15:23:39 +08:00
1 parent 7edc65cfde
commit 65e0822b63
4 files changed
+36 -6

No files matched your search

+1 -1
View File
@@ -145,7 +145,7 @@ func (s *BaseController) CheckUserAuth() {
if s.controllerName == "index" {
if id := s.GetIntNoErr("id"); id != 0 {
belong := false
if strings.Contains(s.actionName, "H") {
if strings.Contains(s.actionName, "h") {
if v, ok := file.GetCsvDb().Hosts.Load(id); ok {
if v.(*file.Host).Client.Id == s.GetSession("clientId").(int) {
belong = true