- 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 (
|
var (
|
||||||
CurrentScheduler IScheduler
|
CurrentScheduler IScheduler
|
||||||
StoreDeliveryTypeName = map[int]string{
|
|
||||||
StoreDeliveryTypeCrowdSourcing: "平台众包",
|
|
||||||
StoreDeliveryTypeByPlatform: "平台专送",
|
|
||||||
StoreDeliveryTypeByStore: "商家自送",
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"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/jxcontext"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
|
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
@@ -44,7 +43,6 @@ func InitServiceInfo(version, buildDate, gitCommit string) {
|
|||||||
"bankName": model.BankName,
|
"bankName": model.BankName,
|
||||||
"promotionStatusName": model.PromotionStatusName,
|
"promotionStatusName": model.PromotionStatusName,
|
||||||
"orderTypeName": model.OrderTypeName,
|
"orderTypeName": model.OrderTypeName,
|
||||||
"storeDeliveryTypeName": scheduler.StoreDeliveryTypeName,
|
|
||||||
"taskStatusName": tasksch.TaskStatusName,
|
"taskStatusName": tasksch.TaskStatusName,
|
||||||
"opRequestTypeName": model.RequestTypeName,
|
"opRequestTypeName": model.RequestTypeName,
|
||||||
"opRequestStatusName": model.RequestStatusName,
|
"opRequestStatusName": model.RequestStatusName,
|
||||||
|
|||||||
@@ -8,8 +8,10 @@ import (
|
|||||||
"git.rosy.net.cn/jx-callback/business/partner/purchase/ebai"
|
"git.rosy.net.cn/jx-callback/business/partner/purchase/ebai"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Init() {
|
func StartRefreshEbaiRealMobile() {
|
||||||
RefreshEbaiRealMobile()
|
utils.AfterFuncWithRecover(5*time.Second, func() {
|
||||||
|
RefreshEbaiRealMobile()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func RefreshEbaiRealMobile() {
|
func RefreshEbaiRealMobile() {
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ var (
|
|||||||
DeliveryRangeTypeRadius: "圆",
|
DeliveryRangeTypeRadius: "圆",
|
||||||
}
|
}
|
||||||
DeliveryTypeName = map[int]string{
|
DeliveryTypeName = map[int]string{
|
||||||
StoreDeliveryTypeCrowdSourcing: "平台众包配送",
|
StoreDeliveryTypeCrowdSourcing: "平台众包",
|
||||||
StoreDeliveryTypeByPlatform: "平台专送",
|
StoreDeliveryTypeByPlatform: "平台专送",
|
||||||
StoreDeliveryTypeByStore: "门店自送",
|
StoreDeliveryTypeByStore: "门店自送",
|
||||||
}
|
}
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -38,7 +38,7 @@ func Init() {
|
|||||||
api.Init()
|
api.Init()
|
||||||
cms.InitServiceInfo(Version, BuildDate, GitCommit)
|
cms.InitServiceInfo(Version, BuildDate, GitCommit)
|
||||||
promotion.Init()
|
promotion.Init()
|
||||||
misc.Init()
|
misc.StartRefreshEbaiRealMobile()
|
||||||
ebai.CurPurchaseHandler.StartRefreshComment()
|
ebai.CurPurchaseHandler.StartRefreshComment()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user