|
|
@ -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") |
|
|
|
} |
|
|
|
} |
|
|
|
}() |
|
|
|
|
|
|
|
} |