- 将“京西菜市”常量尽量替换为配置变量

This commit is contained in:
gazebo
2019-05-15 17:09:23 +08:00
parent e395c7c891
commit 2d3ed62d15
8 changed files with 30 additions and 18 deletions

View File

@@ -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
}