From 6dd2ef415f4a09769bcb68686339c1f397812647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 6 Nov 2024 11:51:57 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/user2.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/business/jxstore/cms/user2.go b/business/jxstore/cms/user2.go index c1f8dd463..46bf955dd 100644 --- a/business/jxstore/cms/user2.go +++ b/business/jxstore/cms/user2.go @@ -483,7 +483,6 @@ func GetUsers(ctx *jxcontext.Context, userType int, keyword string, userIDs []st func GetStoreList4User(ctx *jxcontext.Context, mobileNum, userID string) (storeList []*dao.StoreWithCityName, err error) { roleList, err := api2.RoleMan.GetUserRoleList(userID) - globals.SugarLogger.Debugf("--------roleList- :%s", utils.Format4Output(roleList, false)) if err != nil { return nil, err } @@ -499,12 +498,11 @@ func GetStoreList4User(ctx *jxcontext.Context, mobileNum, userID string) (storeL } } - //if len(storeIDs) == model.NO && len(shortRoleNameList) == model.NO { - // return nil, nil - //} + if len(storeIDs) == model.NO && len(shortRoleNameList) == model.NO { + return nil, nil + } storeList, err = dao.GetStoreListByMobileOrStoreIDs(dao.GetDB(), mobileNum, shortRoleNameList, storeIDs) - globals.SugarLogger.Debugf("--------storeList- :%s", utils.Format4Output(storeList, false)) return storeList, err }