饿百菜市门店名从京西菜市改为饿鲜达

This commit is contained in:
gazebo
2020-02-03 17:41:30 +08:00
committed by 苏尹岚
parent 1bd36385f9
commit aed8dffa43
2 changed files with 9 additions and 5 deletions

View File

@@ -99,10 +99,14 @@ func SplitStoreName(fullName, separator, defaultPrefix string) (prefix, bareName
func ComposeStoreName(bareName string, vendorID int) (fullName string) {
bareName = TrimDecorationChar(strings.Trim(bareName, "-"))
storeName := globals.StoreName
if vendorID == model.VendorIDJD {
fullName = globals.StoreName + "-" + bareName
fullName = storeName + "-" + bareName
} else {
fullName = globals.StoreName + "(" + bareName + ")"
if globals.IsMainProductEnv() && model.ShopChineseNames[vendorID] != "" {
storeName = model.ShopChineseNames[vendorID]
}
fullName = storeName + "(" + bareName + ")"
}
return fullName
}