home
This commit is contained in:
@@ -5771,11 +5771,6 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, "获取门店减免策略失败", err
|
return nil, "获取门店减免策略失败", err
|
||||||
}
|
}
|
||||||
//获取店铺每周评分
|
|
||||||
//weeklyScore, err := misc.GetWeeklyStoreScore(v.ID, -1)
|
|
||||||
//if err != nil {
|
|
||||||
// return nil, "获取店铺每周评分失败", err
|
|
||||||
//}
|
|
||||||
for _, k := range storePolicy {
|
for _, k := range storePolicy {
|
||||||
if k.StoreID == v.ID {
|
if k.StoreID == v.ID {
|
||||||
storeDeductionInfo = StoreDeductionInfo{
|
storeDeductionInfo = StoreDeductionInfo{
|
||||||
@@ -5787,6 +5782,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
|
|||||||
storeDeductionInfos = append(storeDeductionInfos, storeDeductionInfo)
|
storeDeductionInfos = append(storeDeductionInfos, storeDeductionInfo)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debug("storeInfos============", storeInfos)
|
||||||
globals.SugarLogger.Debug("storeDeductionInfos=================", storeDeductionInfos)
|
globals.SugarLogger.Debug("storeDeductionInfos=================", storeDeductionInfos)
|
||||||
//获取热销商品
|
//获取热销商品
|
||||||
topSkusInfo, err := GetTopSkusByStoreIDs(ctx, storeID)
|
topSkusInfo, err := GetTopSkusByStoreIDs(ctx, storeID)
|
||||||
|
|||||||
Reference in New Issue
Block a user