Files
jx-callback/business/jxstore/misc/misc.go
gazebo df54ea9478 - remove duplicated cms const storeDeliveryTypeName
- change misc.Init to StartRefreshEbaiRealMobile and make it async to minimize startup time
2019-03-15 10:53:57 +08:00

23 lines
551 B
Go

package misc
import (
"time"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
"git.rosy.net.cn/jx-callback/business/partner/purchase/ebai"
)
func StartRefreshEbaiRealMobile() {
utils.AfterFuncWithRecover(5*time.Second, func() {
RefreshEbaiRealMobile()
})
}
func RefreshEbaiRealMobile() {
ebai.CurPurchaseHandler.RefreshRealMobile(jxcontext.AdminCtx, time.Now().Add(-6*time.Hour), utils.DefaultTimeValue, true, true)
utils.AfterFuncWithRecover(1*time.Hour, func() {
RefreshEbaiRealMobile()
})
}