controllers/restriction.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
main.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
controllers/restriction.go
@@ -18,7 +18,7 @@ beego.Controller } func init() { func InitRestriction() { date := time.Now().Format("2006-01-02") var r models.Restriction err := r.SelectByDate(date) main.go
@@ -15,6 +15,7 @@ beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger" } models.InitDb() controllers.InitRestriction() controllers.Schedule() go controllers.ComputeSpaceLeftRealTime() //每天同步海康数据,看人员id是否有发生变化