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