aa
This commit is contained in:
@@ -529,12 +529,18 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
|
|||||||
storeIDs2 = append(storeIDs2, -1)
|
storeIDs2 = append(storeIDs2, -1)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if len(storeIDsMap) > 0 {
|
if params["storeID"] != nil {
|
||||||
for k, _ := range storeIDsMap {
|
if storeIDsMap[int(utils.Interface2Int64WithDefault(params["storeID"], 0))] == 0 {
|
||||||
storeIDs2 = append(storeIDs2, k)
|
params["storeID"] = nil
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
storeIDs2 = append(storeIDs2, -1)
|
if len(storeIDsMap) > 0 {
|
||||||
|
for k, _ := range storeIDsMap {
|
||||||
|
storeIDs2 = append(storeIDs2, k)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
storeIDs2 = append(storeIDs2, -1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if data, err := json.Marshal(storeIDs2); err == nil {
|
if data, err := json.Marshal(storeIDs2); err == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user