Browse Source

注释掉无用代码

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

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

@ -6,7 +6,6 @@ import (
"github.com/kataras/iris/v12/core/router" "github.com/kataras/iris/v12/core/router"
"leit.com/LAPP_CHEERSSON_BACKEND/grmi" "leit.com/LAPP_CHEERSSON_BACKEND/grmi"
svr "leit.com/LAPP_CHEERSSON_BACKEND/services/ap" svr "leit.com/LAPP_CHEERSSON_BACKEND/services/ap"
"leit.com/LAPP_CHEERSSON_BACKEND/services/erp"
"time" "time"
) )
@ -737,14 +736,14 @@ func init() {
balanceService.RefreshData() 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