同步油站
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user