Browse Source

修改banner 按照新结构,市场和排序

(cherry picked from commit 3394d14292)
master
Mike 5 years ago
committed by weigang
parent
commit
dd3c11f799
  1. 3
      app/Service/v3/Implementations/BannerService.php

3
app/Service/v3/Implementations/BannerService.php

@ -11,7 +11,8 @@ class BannerService implements BannerServiceInterface
{ {
return Banner::query() return Banner::query()
->where(['type' => $type]) ->where(['type' => $type])
->whereIn('market_id', [0,$marketId])
->whereJsonContains('market_ids', [(string)$marketId])
->orderBy('sort','desc')
->get()->toArray(); ->get()->toArray();
} }
} }
Loading…
Cancel
Save