param
This commit is contained in:
@@ -545,6 +545,7 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
|
||||
var storeIDs []int
|
||||
if err = utils.UnmarshalUseNumber([]byte(params["storeIDs"].(string)), &storeIDs); err == nil {
|
||||
for _, v := range storeIDs {
|
||||
globals.SugarLogger.Debug("storeIDs===============", v)
|
||||
if storeIDsMap[v] != 0 {
|
||||
storeIDs2 = append(storeIDs2, v)
|
||||
}
|
||||
@@ -5706,19 +5707,16 @@ func FilterByB2B(locationList []*common.Store4User, token string) (retVal []*com
|
||||
}
|
||||
|
||||
//首页信息展示
|
||||
//func GetHomePageByLocation(ctx *jxcontext.Context,locationList []*common.Store4User, token string) (interface{}, string, error) {
|
||||
// // 获取用户权限,如普通用户不展示b2b相关目录,门店老板或者管理则展示全部
|
||||
// result, _, err := FilterByB2B(locationList, token)
|
||||
//func GetHomePageByLocation(ctx *jxcontext.Context, params map[string]interface{}) (interface{}, string, error) {
|
||||
// //获取门店信息
|
||||
// timeList, err := jxutils.BatchStr2Time("1970-01-01 00:00:00 +0800 CST", "1970-01-01 00:00:00 +0800 CST")
|
||||
// if err != nil {
|
||||
// return nil, "根据用户权限过滤商店失败", err
|
||||
// return nil, "", err
|
||||
// }
|
||||
// for _, v := range result {
|
||||
// //获取门店信息
|
||||
// store, err := GetStores(ctx, )
|
||||
// //获取热销商品
|
||||
// store, err := GetStores(ctx, "", params, 0, 0, timeList[0], timeList[1], 0, 0)
|
||||
// //获取热销商品
|
||||
//
|
||||
// //获取满减策略
|
||||
// }
|
||||
// //获取满减策略
|
||||
//
|
||||
// return nil, "", nil
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user