param
This commit is contained in:
@@ -5664,13 +5664,11 @@ func FilterByB2B(locationList []*common.Store4User, token string) (retVal []*com
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
globals.SugarLogger.Debug("检测数据userAuth,user,total==============", userAuth, user, total)
|
||||
// 获取位置附近门店列表
|
||||
storeIDs := make([]int, 0, len(locationList))
|
||||
for _, v := range locationList {
|
||||
storeIDs = append(storeIDs, v.ID)
|
||||
}
|
||||
globals.SugarLogger.Debug("检测数据locationList,storeIDs==============", locationList, storeIDs)
|
||||
// 判断门店是不是b2b门店,如果是,用户必须为系统管理员(门店老板和运营人员)
|
||||
store, err := dao.GetStoreList(dao.GetDB(), storeIDs, nil, nil, nil, nil, "")
|
||||
if err != nil {
|
||||
@@ -5710,7 +5708,7 @@ func FilterByB2B(locationList []*common.Store4User, token string) (retVal []*com
|
||||
//首页信息展示
|
||||
//func GetHomePageByLocation(locationList []*common.Store4User, token string) (interface{}, string, error) {
|
||||
// var (
|
||||
// //ctx *jxcontext.Context
|
||||
// //ctx *jxcontext.Context
|
||||
// )
|
||||
// // 获取用户权限,如普通用户不展示b2b相关目录,门店老板或者管理则展示全部
|
||||
// result, _, err := FilterByB2B(locationList, token)
|
||||
@@ -5719,8 +5717,9 @@ func FilterByB2B(locationList []*common.Store4User, token string) (retVal []*com
|
||||
// }
|
||||
// for _, v := range result {
|
||||
// //获取门店信息
|
||||
// //storeInfos, err := GetStores(ctx, )
|
||||
// store, err := GetStores(ctx, )
|
||||
// //获取热销商品
|
||||
//
|
||||
// //获取满减策略
|
||||
// }
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user