From 931c2a3a62f4ef114d1901c48705f098d17940e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 27 Mar 2025 14:13:14 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index b6ef6c08b..8c39a61fd 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -584,11 +584,8 @@ func setStoreMapInfo(ctx *jxcontext.Context, db *dao.DaoDB, storesInfo *StoresIn func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interface{}, offset, pageSize int, orderTimeFrom, orderTimeTo time.Time, orderCountFrom, orderCountTo int) (retVal *StoresInfo, err error) { briefLevel := int(utils.ForceInterface2Int64(params["briefLevel"])) //权限 - globals.SugarLogger.Debugf("-----keyword :%s", keyword) - globals.SugarLogger.Debugf("-----params :%s", utils.Format4Output(params, false)) if permission.IsRoled(ctx) { if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil { - globals.SugarLogger.Debugf("-----storeIDsMap :%s", utils.Format4Output(storeIDsMap, false)) var storeIDs2 []int if params["storeIDs"] != nil { var storeIDs []int @@ -604,7 +601,7 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa } } else { if params["storeID"] != nil && len(storeIDsMap) > 0 { - if storeIDsMap[int(utils.Interface2Int64WithDefault(params["storeID"], 0))] == 0 { + if storeIDsMap[int(utils.Interface2Int64WithDefault(params["storeID"], 0))] == 0 && int(utils.Interface2Int64WithDefault(params["storeID"], 0)) != 666666 { params["storeID"] = nil } } else if len(storeIDsMap) > 0 {