aa
This commit is contained in:
@@ -14,6 +14,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
|
"git.rosy.net.cn/jx-callback/business/auth2"
|
||||||
|
"git.rosy.net.cn/jx-callback/business/auth2/authprovider/weixin"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxstore/permission"
|
"git.rosy.net.cn/jx-callback/business/jxstore/permission"
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/business/authz"
|
"git.rosy.net.cn/jx-callback/business/authz"
|
||||||
@@ -3177,6 +3179,9 @@ func GetStoreCategoryMap(ctx *jxcontext.Context, parentID, level int, storeID in
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if ctx.GetLoginType() != weixin.AuthTypeMP && ctx.GetLoginType() != weixin.AuthTypeMini && ctx.GetLoginType() != weixin.AuthTypeWxApp && ctx.GetLoginType() != auth2.AuthTypeMobile {
|
||||||
|
return storeCatMaps, err
|
||||||
|
}
|
||||||
//表示没有门店分类
|
//表示没有门店分类
|
||||||
if len(storeCatMaps) == 0 {
|
if len(storeCatMaps) == 0 {
|
||||||
storeCatMaps, err = dao.GetCategoriesForStore(db, parentID, 0, nil)
|
storeCatMaps, err = dao.GetCategoriesForStore(db, parentID, 0, nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user