- remove duplicated cms const storeDeliveryTypeName
- change misc.Init to StartRefreshEbaiRealMobile and make it async to minimize startup time
This commit is contained in:
@@ -27,12 +27,7 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
CurrentScheduler IScheduler
|
||||
StoreDeliveryTypeName = map[int]string{
|
||||
StoreDeliveryTypeCrowdSourcing: "平台众包",
|
||||
StoreDeliveryTypeByPlatform: "平台专送",
|
||||
StoreDeliveryTypeByStore: "商家自送",
|
||||
}
|
||||
CurrentScheduler IScheduler
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -6,7 +6,6 @@ import (
|
||||
"strconv"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxcallback/scheduler"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
@@ -44,7 +43,6 @@ func InitServiceInfo(version, buildDate, gitCommit string) {
|
||||
"bankName": model.BankName,
|
||||
"promotionStatusName": model.PromotionStatusName,
|
||||
"orderTypeName": model.OrderTypeName,
|
||||
"storeDeliveryTypeName": scheduler.StoreDeliveryTypeName,
|
||||
"taskStatusName": tasksch.TaskStatusName,
|
||||
"opRequestTypeName": model.RequestTypeName,
|
||||
"opRequestStatusName": model.RequestStatusName,
|
||||
|
||||
@@ -8,8 +8,10 @@ import (
|
||||
"git.rosy.net.cn/jx-callback/business/partner/purchase/ebai"
|
||||
)
|
||||
|
||||
func Init() {
|
||||
RefreshEbaiRealMobile()
|
||||
func StartRefreshEbaiRealMobile() {
|
||||
utils.AfterFuncWithRecover(5*time.Second, func() {
|
||||
RefreshEbaiRealMobile()
|
||||
})
|
||||
}
|
||||
|
||||
func RefreshEbaiRealMobile() {
|
||||
|
||||
@@ -39,7 +39,7 @@ var (
|
||||
DeliveryRangeTypeRadius: "圆",
|
||||
}
|
||||
DeliveryTypeName = map[int]string{
|
||||
StoreDeliveryTypeCrowdSourcing: "平台众包配送",
|
||||
StoreDeliveryTypeCrowdSourcing: "平台众包",
|
||||
StoreDeliveryTypeByPlatform: "平台专送",
|
||||
StoreDeliveryTypeByStore: "门店自送",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user