This commit is contained in:
苏尹岚
2021-02-05 14:18:03 +08:00
parent 8c4fb7871f
commit 2709883f7f

View File

@@ -364,7 +364,7 @@ func GetUserStoresResultMap(userID string) (resultMap map[int]int, err error) {
if v.BrandID != 0 {
brandIDs = append(brandIDs, v.BrandID)
}
if v.CityCodes != "0" {
if v.CityCodes != "0" && v.CityCodes != "" {
cityCodes = append(cityCodes, jxutils.StrListToIntList(strings.Split(v.CityCodes, ","))...)
}
if v.StoreIDs != "" {