- RefreshRealMobile for ebai
This commit is contained in:
20
business/jxstore/misc/misc.go
Normal file
20
business/jxstore/misc/misc.go
Normal file
@@ -0,0 +1,20 @@
|
||||
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 Init() {
|
||||
RefreshEbaiRealMobile()
|
||||
}
|
||||
|
||||
func RefreshEbaiRealMobile() {
|
||||
ebai.CurPurchaseHandler.RefreshRealMobile(jxcontext.AdminCtx, time.Now().Add(-6*time.Hour), utils.DefaultTimeValue, true, true)
|
||||
time.AfterFunc(1*time.Hour, func() {
|
||||
RefreshEbaiRealMobile()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user