1
This commit is contained in:
@@ -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) {
|
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", permission.IsRoled(ctx))
|
||||||
fmt.Println("111111111111111111", cc.Name, cc.Mobile)
|
|
||||||
if permission.IsRoled(ctx) {
|
if permission.IsRoled(ctx) {
|
||||||
if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil {
|
if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil {
|
||||||
var storeIDs2 []int
|
var storeIDs2 []int
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ func init() {
|
|||||||
|
|
||||||
// TestGet is a sample to run an endpoint test
|
// TestGet is a sample to run an endpoint test
|
||||||
func TestGet(t *testing.T) {
|
func TestGet(t *testing.T) {
|
||||||
fmt.Println(7&16 != 0)
|
//fmt.Println(7&16 != 0)
|
||||||
fmt.Println(3&16 != 0)
|
//fmt.Println(3&16 != 0)
|
||||||
fmt.Println(23&16 != 0)
|
//fmt.Println(23&16 != 0)
|
||||||
|
fmt.Println("1111111111111111111", "")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user