- fixed a bug in defsch.init, replace LoadOrder with GetOrder.
- dynamic table name for legacy order related table.
This commit is contained in:
@@ -160,3 +160,11 @@ func CallMsgHandlerAsync(handler func(), primaryID string) {
|
||||
handler()
|
||||
}, primaryID)
|
||||
}
|
||||
|
||||
func SplitSkuName(fullName string) (name string, unit string) {
|
||||
index := strings.Index(fullName, "/")
|
||||
if index >= 0 {
|
||||
return fullName[:index], fullName[index+1:]
|
||||
}
|
||||
return fullName, "份"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user