From 78010354bcc7af52ed5462c38a75e78dd76d1437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 7 Dec 2020 11:01:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=B2=B9=E7=AB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/misc/misc.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index e35a45350..1a263f969 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -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) } }