- empty scheduler added.
This commit is contained in:
@@ -12,33 +12,10 @@ import (
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/baseapi/utils/routinepool"
|
||||
_ "git.rosy.net.cn/jx-callback/business/scheduler/defsch" // 导入缺省定单调度器
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
)
|
||||
|
||||
const (
|
||||
VenderIDUnknown = -1
|
||||
VendorIDPurchaseBegin = 0
|
||||
VendorIDJD = 0
|
||||
VendorIDMTWM = 1
|
||||
VendorIDELM = 2
|
||||
VendorIDPurchaseEnd = 2
|
||||
|
||||
VendorIDDeliveryBegin = 101
|
||||
VendorIDDada = 101
|
||||
VendorIDMTPS = 102
|
||||
VendorIDDeliveryEnd = 102
|
||||
)
|
||||
|
||||
const (
|
||||
OrderTypeOrder = 1
|
||||
OrderTypeWaybill = 2
|
||||
)
|
||||
|
||||
const (
|
||||
CoordinateTypeMars = 0 // 火星坐标
|
||||
CoordinateTypeReal = 1 // 真实坐标
|
||||
)
|
||||
|
||||
const (
|
||||
DefaultOrderCacheTimeout = 24 * time.Hour
|
||||
)
|
||||
@@ -82,12 +59,12 @@ func SplitUniversalOrderID(universalOrderID string) (orderID string, vendorID in
|
||||
// 3022716176275221584 elm order
|
||||
orderIDLen := len(universalOrderID)
|
||||
if orderIDLen == len("800402581000221") {
|
||||
vendorID = VendorIDJD
|
||||
vendorID = model.VendorIDJD
|
||||
} else if orderIDLen == len("3022716176275221584") {
|
||||
vendorID = VendorIDELM
|
||||
vendorID = model.VendorIDELM
|
||||
} else {
|
||||
globals.SugarLogger.Errorf("unkown order type:%v", universalOrderID)
|
||||
vendorID = VenderIDUnknown
|
||||
vendorID = model.VenderIDUnknown
|
||||
}
|
||||
orderID = universalOrderID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user