diff --git a/web/controllers/ap/ap.go b/web/controllers/ap/ap.go index 8135df5..04b79f9 100644 --- a/web/controllers/ap/ap.go +++ b/web/controllers/ap/ap.go @@ -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") + } + } + }() }