aa
This commit is contained in:
@@ -323,14 +323,18 @@ func GetUserStoresResultMap(userID string) (resultMap map[int]int, err error) {
|
|||||||
if _, ok := brandIDMap[v.BrandID]; !ok {
|
if _, ok := brandIDMap[v.BrandID]; !ok {
|
||||||
brandIDMap[v.BrandID] = 1
|
brandIDMap[v.BrandID] = 1
|
||||||
}
|
}
|
||||||
for _, cityCode := range jxutils.StrListToIntList(strings.Split(v.CityCodes, ",")) {
|
if v.CityCodes != "" {
|
||||||
if _, ok := cityCodeMap[cityCode]; !ok {
|
for _, cityCode := range jxutils.StrListToIntList(strings.Split(v.CityCodes, ",")) {
|
||||||
cityCodeMap[cityCode] = 1
|
if _, ok := cityCodeMap[cityCode]; !ok {
|
||||||
|
cityCodeMap[cityCode] = 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for _, storeID := range jxutils.StrListToIntList(strings.Split(v.StoreIDs, ",")) {
|
if v.StoreIDs != "" {
|
||||||
if _, ok := storeIDMap[storeID]; !ok {
|
for _, storeID := range jxutils.StrListToIntList(strings.Split(v.StoreIDs, ",")) {
|
||||||
storeIDMap[storeID] = 1
|
if _, ok := storeIDMap[storeID]; !ok {
|
||||||
|
storeIDMap[storeID] = 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user