This commit is contained in:
richboo111
2022-08-24 09:24:26 +08:00
parent 69e681043e
commit ba7db2bffe
4 changed files with 6 additions and 14 deletions

View File

@@ -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, )
// //获取热销商品
//
// //获取满减策略
// }
//