From aa1561e6b1f51ae2e6e286bdc24565f919f889c0 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Wed, 1 Sep 2021 15:57:43 +0800 Subject: [PATCH] aa --- business/jxstore/cms/store.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 58af721e8..6834b22f6 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -529,12 +529,18 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa storeIDs2 = append(storeIDs2, -1) } } else { - if len(storeIDsMap) > 0 { - for k, _ := range storeIDsMap { - storeIDs2 = append(storeIDs2, k) + if params["storeID"] != nil { + if storeIDsMap[int(utils.Interface2Int64WithDefault(params["storeID"], 0))] == 0 { + params["storeID"] = nil } } 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 {