From 523fffef55d7af7e22b61948d6f8ac630474910b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 30 Mar 2022 10:28:38 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store_sku.go | 5 ----- tests/default_test.go | 7 ++++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index d10588cba..20251c4ef 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -736,12 +736,7 @@ 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) { //权限 管理员/未登录人员不进入,商城不进入 - cc, _ := ctx.GetV2AuthInfo() - fmt.Println("111111111111111111", cc.AppID) - fmt.Println("111111111111111111", cc.Token) - fmt.Println("111111111111111111", cc.TokenType) fmt.Println("111111111111111111", permission.IsRoled(ctx)) - fmt.Println("111111111111111111", cc.Name, cc.Mobile) if permission.IsRoled(ctx) { if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil { var storeIDs2 []int diff --git a/tests/default_test.go b/tests/default_test.go index 4487844b6..e7aed550f 100644 --- a/tests/default_test.go +++ b/tests/default_test.go @@ -20,7 +20,8 @@ func init() { // TestGet is a sample to run an endpoint test func TestGet(t *testing.T) { - fmt.Println(7&16 != 0) - fmt.Println(3&16 != 0) - fmt.Println(23&16 != 0) + //fmt.Println(7&16 != 0) + //fmt.Println(3&16 != 0) + //fmt.Println(23&16 != 0) + fmt.Println("1111111111111111111", "") }