From 64fc4bfe1d563839ad7a4237860145b9b2addb77 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Tue, 16 Aug 2022 13:57:11 +0800 Subject: [PATCH] =?UTF-8?q?dy=20=E8=8E=B7=E5=8F=96=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E5=BA=97=E9=93=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/cms_store.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/controllers/cms_store.go b/controllers/cms_store.go index 8fc03accd..38cc413e8 100644 --- a/controllers/cms_store.go +++ b/controllers/cms_store.go @@ -12,6 +12,7 @@ import ( "git.rosy.net.cn/jx-callback/business/jxutils/netprinter" "git.rosy.net.cn/jx-callback/business/model" "git.rosy.net.cn/jx-callback/business/model/dao" + "git.rosy.net.cn/jx-callback/globals" "git.rosy.net.cn/jx-callback/globals/api" "github.com/astaxie/beego/server/web" ) @@ -589,12 +590,13 @@ func (c *StoreController) GetStoreListByLocation() { if err != nil { return nil, "", err } - + globals.SugarLogger.Debug("检测数据userAuth,user,total==============", userAuth, user, total) // 获取位置附近门店列表 storeIDs := make([]int, 0, len(locationList)) for _, v := range locationList { storeIDs = append(storeIDs, v.ID) } + globals.SugarLogger.Debug("检测数据locationList,storeIDs==============", locationList, storeIDs) // 判断门店是不是b2b门店,如果是,用户必须为系统管理员(门店老板和运营人员) store, err := dao.GetStoreList(dao.GetDB(), storeIDs, nil, nil, nil, nil, "") if err != nil { @@ -630,6 +632,7 @@ func (c *StoreController) GetStoreListByLocation() { return result, "", err } } + globals.SugarLogger.Debug("检测最后的数据locationList==============", locationList) return locationList, "", err }) }