diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 227281d9d..7a2e0b3fe 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -526,7 +526,7 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa storeIDs2 = append(storeIDs2, -1) } } else { - if params["storeID"] != nil { + if params["storeID"] != nil && len(storeIDsMap) > 0 { if storeIDsMap[int(utils.Interface2Int64WithDefault(params["storeID"], 0))] == 0 { params["storeID"] = nil } @@ -536,7 +536,8 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa storeIDs2 = append(storeIDs2, k) } } else { - storeIDs2 = append(storeIDs2, -1) + //storeIDs2 = append(storeIDs2, -1) + storeIDs2 = append(storeIDs2, int(utils.Interface2Int64WithDefault(params["storeID"], 0))) } } }