From a5983d3e38cc4fc2dd6a614aa0c55e9373c84c28 Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 7 Nov 2018 13:36:07 +0800 Subject: [PATCH] - run scheduleRoutine on startup --- business/jxstore/promotion/jd_promotion.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/business/jxstore/promotion/jd_promotion.go b/business/jxstore/promotion/jd_promotion.go index b228fcadd..8fdd576fe 100644 --- a/business/jxstore/promotion/jd_promotion.go +++ b/business/jxstore/promotion/jd_promotion.go @@ -185,9 +185,10 @@ func scheduleDailyRoutine() { } func scheduleRoutine() { + RefreshJdLockStoreSku() + RefreshJdStoreSkuStock() + time.AfterFunc(stockRefreshGap, func() { - RefreshJdLockStoreSku() - RefreshJdStoreSkuStock() scheduleRoutine() }) }