- wrap StartRefreshComment and StartRefreshEbaiRealMobile by ReallyCallPlatformAPI
This commit is contained in:
@@ -6,12 +6,15 @@ import (
|
||||
"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"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
)
|
||||
|
||||
func StartRefreshEbaiRealMobile() {
|
||||
utils.AfterFuncWithRecover(5*time.Second, func() {
|
||||
RefreshEbaiRealMobile()
|
||||
})
|
||||
if globals.ReallyCallPlatformAPI {
|
||||
utils.AfterFuncWithRecover(5*time.Second, func() {
|
||||
RefreshEbaiRealMobile()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func RefreshEbaiRealMobile() {
|
||||
|
||||
@@ -21,9 +21,11 @@ const (
|
||||
)
|
||||
|
||||
func (c *PurchaseHandler) StartRefreshComment() {
|
||||
utils.AfterFuncWithRecover(5*time.Second, func() {
|
||||
c.refreshCommentOnce()
|
||||
})
|
||||
if globals.ReallyCallPlatformAPI {
|
||||
utils.AfterFuncWithRecover(5*time.Second, func() {
|
||||
c.refreshCommentOnce()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func (c *PurchaseHandler) refreshCommentOnce() {
|
||||
|
||||
Reference in New Issue
Block a user