From ccae1e0a966d9717bc39bd022e3134057845b671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 29 Mar 2022 10:14:45 +0800 Subject: [PATCH] dazhuang --- business/jxstore/cms/store_sku.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index dc7b4922a..5586930a9 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -737,14 +737,16 @@ func getGetStoresSkusBaseSQL(db *dao.DaoDB, storeIDs, skuIDs []int, upcs []strin func GetStoresSkus(ctx *jxcontext.Context, storeIDs, skuIDs []int, upcs []string, isFocus, isHighPrice bool, priceType int, keyword string, isBySku, isAct bool, params map[string]interface{}, offset, pageSize int) (skuNamesInfo *dao.StoreSkuNamesInfo, err error) { //权限 管理员/未登录人员不进入,商城不进入 fmt.Println("===========================0", permission.IsRoled(ctx)) + fmt.Println("===========================1", ctx.GetToken()) + fmt.Println("===========================1", ctx.GetLoginInfo()) + fmt.Println("===========================1", ctx.GetFullUser()) + fmt.Println("===========================1", ctx.GetLoginInfo().GetAuthType()) + fmt.Println("===========================1", ctx.GetLoginInfo().GetAuthID()) + fmt.Println("===========================1", ctx.GetLoginInfo().GetIsWeCartApp()) + fmt.Println("===========================1", ctx.GetLoginInfo().GetUserTag()) + fmt.Println("===========================1") if permission.IsRoled(ctx) { // 登录人员,来自小程序不做处理 - fmt.Println("===========================") - fmt.Println("===========================1", ctx.GetLoginInfo().GetAuthType()) - fmt.Println("===========================1", ctx.GetLoginInfo().GetAuthID()) - fmt.Println("===========================1", ctx.GetLoginInfo().GetIsWeCartApp()) - fmt.Println("===========================1", ctx.GetLoginInfo().GetUserTag()) - fmt.Println("===========================1") if ctx.GetLoginInfo().GetIsWeCartApp() != "" && auth2.WeCartAppID != ctx.GetLoginInfo().GetIsWeCartApp() { return GetStoresSkusNew(ctx, storeIDs, skuIDs, upcs, isFocus, isHighPrice, priceType, keyword, isBySku, isAct, params, offset, pageSize) }