From 852a4f555dbc8f047b040717f297565548c9a37c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 15 Apr 2022 10:16:21 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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))) } } }