- 将“京西菜市”常量尽量替换为配置变量
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
"git.rosy.net.cn/baseapi/platformapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -82,9 +83,9 @@ func SplitStoreName(fullName, separator, defaultPrefix string) (prefix, bareName
|
||||
func ComposeStoreName(bareName string, vendorID int) (fullName string) {
|
||||
bareName = TrimDecorationChar(strings.Trim(bareName, "-"))
|
||||
if vendorID == model.VendorIDJD {
|
||||
fullName = "京西菜市-" + bareName
|
||||
fullName = globals.StoreName + "-" + bareName
|
||||
} else {
|
||||
fullName = "京西菜市(" + bareName + ")"
|
||||
fullName = globals.StoreName + "(" + bareName + ")"
|
||||
}
|
||||
return fullName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user