mini
This commit is contained in:
@@ -130,9 +130,6 @@ var (
|
|||||||
ErrInvalidParams = errors.New("参数不合法")
|
ErrInvalidParams = errors.New("参数不合法")
|
||||||
)
|
)
|
||||||
|
|
||||||
// 微信小程序商城appid
|
|
||||||
const WeCartAppID = "wx4b5930c13f8b1170"
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
authers = make(map[string]IAuther)
|
authers = make(map[string]IAuther)
|
||||||
|
|
||||||
|
|||||||
@@ -738,7 +738,7 @@ func GetStoresSkus(ctx *jxcontext.Context, storeIDs, skuIDs []int, upcs []string
|
|||||||
//权限 管理员/未登录人员不进入,商城不进入
|
//权限 管理员/未登录人员不进入,商城不进入
|
||||||
if permission.IsRoled(ctx) {
|
if permission.IsRoled(ctx) {
|
||||||
// 登录人员,来自小程序不做处理
|
// 登录人员,来自小程序不做处理
|
||||||
if auth2.WeCartAppID == strings.Split(ctx.GetToken(), ".")[4] {
|
if "weixinmini" == strings.Split(ctx.GetToken(), ".")[4] {
|
||||||
return GetStoresSkusNew(ctx, storeIDs, skuIDs, upcs, isFocus, isHighPrice, priceType, keyword, isBySku, isAct, params, offset, pageSize)
|
return GetStoresSkusNew(ctx, storeIDs, skuIDs, upcs, isFocus, isHighPrice, priceType, keyword, isBySku, isAct, params, offset, pageSize)
|
||||||
}
|
}
|
||||||
if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil {
|
if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user