This commit is contained in:
邹宗楠
2022-04-15 10:16:21 +08:00
parent 8a68945b5c
commit 852a4f555d

View File

@@ -526,7 +526,7 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
storeIDs2 = append(storeIDs2, -1) storeIDs2 = append(storeIDs2, -1)
} }
} else { } else {
if params["storeID"] != nil { if params["storeID"] != nil && len(storeIDsMap) > 0 {
if storeIDsMap[int(utils.Interface2Int64WithDefault(params["storeID"], 0))] == 0 { if storeIDsMap[int(utils.Interface2Int64WithDefault(params["storeID"], 0))] == 0 {
params["storeID"] = nil params["storeID"] = nil
} }
@@ -536,7 +536,8 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
storeIDs2 = append(storeIDs2, k) storeIDs2 = append(storeIDs2, k)
} }
} else { } else {
storeIDs2 = append(storeIDs2, -1) //storeIDs2 = append(storeIDs2, -1)
storeIDs2 = append(storeIDs2, int(utils.Interface2Int64WithDefault(params["storeID"], 0)))
} }
} }
} }