同步油站

This commit is contained in:
苏尹岚
2020-12-07 11:01:04 +08:00
parent 360aed8743
commit 78010354bc

View File

@@ -17,11 +17,20 @@ var (
dailyWorkTimeList = []string{
"00:00:30",
}
stationTimeList = []string{
"00:00:00",
"12:00:00",
}
)
func Init() {
if globals.IsProductEnv() {
ScheduleTimerFunc("doDailyWork", doDailyWork, dailyWorkTimeList)
ScheduleTimerFunc("InitStation", func() {
//同步油站信息
cms.InitStation(jxcontext.AdminCtx)
}, stationTimeList)
}
}