Browse Source

恢复注释掉的代码

pull/106/head
zhangxin 3 years ago
parent
commit
72167745d5
1 changed files with 10 additions and 9 deletions
  1. +10
    -9
      web/controllers/ap/ap.go

+ 10
- 9
web/controllers/ap/ap.go View File

@ -6,6 +6,7 @@ import (
"github.com/kataras/iris/v12/core/router"
"leit.com/LAPP_CHEERSSON_BACKEND/grmi"
svr "leit.com/LAPP_CHEERSSON_BACKEND/services/ap"
"leit.com/LAPP_CHEERSSON_BACKEND/services/erp"
"time"
)
@ -734,14 +735,14 @@ func init() {
balanceService.RefreshData()
})
//go func() {
// timer := time.NewTicker(10 * time.Second)
// for {
// select {
// case <-timer.C:
// erp.PublishPlan(100,"admin")
// }
// }
//}()
go func() {
timer := time.NewTicker(10 * time.Second)
for {
select {
case <-timer.C:
erp.PublishPlan(100,"admin")
}
}
}()
}

Loading…
Cancel
Save