This commit is contained in:
邹宗楠
2022-03-30 10:28:38 +08:00
parent 8a52877e97
commit 523fffef55
2 changed files with 4 additions and 8 deletions

View File

@@ -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

View File

@@ -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", "")
}