修改小程序列表数据
This commit is contained in:
@@ -300,9 +300,6 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
|
|||||||
authInfo.IsExistOpenID = true
|
authInfo.IsExistOpenID = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if WeCartAppID == appID {
|
|
||||||
authInfo.AuthBindInfo.AppServer = WeCartAppID
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,10 +84,6 @@ func (a *AuthInfo) GetAuthType() string {
|
|||||||
return a.AuthBindInfo.Type
|
return a.AuthBindInfo.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *AuthInfo) GetIsWeCartApp() string {
|
|
||||||
return a.AuthBindInfo.AppServer
|
|
||||||
}
|
|
||||||
|
|
||||||
func (a *AuthInfo) GetAuthTypeID() string {
|
func (a *AuthInfo) GetAuthTypeID() string {
|
||||||
return a.AuthBindInfo.TypeID
|
return a.AuthBindInfo.TypeID
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -736,18 +736,9 @@ 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) {
|
||||||
//权限 管理员/未登录人员不进入,商城不进入
|
//权限 管理员/未登录人员不进入,商城不进入
|
||||||
fmt.Println("===========================0", permission.IsRoled(ctx))
|
|
||||||
fmt.Println("===========================1", ctx.GetToken())
|
|
||||||
fmt.Println("===========================1", ctx.GetLoginInfo())
|
|
||||||
fmt.Println("===========================1", ctx.GetFullUser())
|
|
||||||
fmt.Println("===========================1", ctx.GetLoginInfo().GetAuthType())
|
|
||||||
fmt.Println("===========================1", ctx.GetLoginInfo().GetAuthID())
|
|
||||||
fmt.Println("===========================1", ctx.GetLoginInfo().GetIsWeCartApp())
|
|
||||||
fmt.Println("===========================1", ctx.GetLoginInfo().GetUserTag())
|
|
||||||
fmt.Println("===========================1")
|
|
||||||
if permission.IsRoled(ctx) {
|
if permission.IsRoled(ctx) {
|
||||||
// 登录人员,来自小程序不做处理
|
// 登录人员,来自小程序不做处理
|
||||||
if ctx.GetLoginInfo().GetIsWeCartApp() != "" && auth2.WeCartAppID != ctx.GetLoginInfo().GetIsWeCartApp() {
|
if auth2.WeCartAppID == 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 {
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ type IAuther interface {
|
|||||||
GetAuthID() string
|
GetAuthID() string
|
||||||
GetAuthType() string
|
GetAuthType() string
|
||||||
GetUserTag() string
|
GetUserTag() string
|
||||||
GetIsWeCartApp() string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Context struct {
|
type Context struct {
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ type AuthBind struct {
|
|||||||
AuthSecret2 string `orm:"size(48)" json:"-"`
|
AuthSecret2 string `orm:"size(48)" json:"-"`
|
||||||
Remark string `orm:"size(255)" json:"remark"`
|
Remark string `orm:"size(255)" json:"remark"`
|
||||||
DetailData string `orm:"type(text)" json:"detailData"`
|
DetailData string `orm:"type(text)" json:"detailData"`
|
||||||
AppServer string `json:"appServer"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*AuthBind) TableUnique() [][]string {
|
func (*AuthBind) TableUnique() [][]string {
|
||||||
|
|||||||
Reference in New Issue
Block a user