This commit is contained in:
苏尹岚
2021-02-19 17:04:34 +08:00
parent 63fea2e47b
commit 6833df3548

View File

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